Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6475531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:42:55+00:00 2026-05-25T06:42:55+00:00

I am listing products as table rows, each row contains input fields for specifying

  • 0

I am listing products as table rows, each row contains input fields for specifying the quantity of products.

I made a Fiddle for it here, http://jsfiddle.net/kroofy/4jTa8/19/

As you can see, after the input in the Qty field have been made, the whole row render again. And because of that the focus of the input field will be lost, which is not good if you want to input more than just one digit, or tab between input fields.

What would be the most elegant way to solve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:42:56+00:00Added an answer on May 25, 2026 at 6:42 am

    i built a plugin for backbone called Backbone.ModelBinding that may be able to help in this situation. my plugin allows you to update portions of a view with data from a model, when the model changes.

    i’ve forked / updated your fiddle to show it in action: http://jsfiddle.net/derickbailey/FEcyF/6/

    i removed the binding to the model change. i’ve also added id attributes to the inputs of the form to facilitate the plugin (the attribute that the plugin uses is configurable, though). and lastly, i’ve added a data-bind attribute to the sell price total td.

    you can get the plugin here: http://github.com/derickbailey/backbone.modelbinding/

    hope that helps

    FWIW: my plugin is an automated version of what Elf is suggesting. I’ve written code exactly like he is describing, numerous times, which is where the plugin came from. I just got tired of writing that code by hand 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm listing the data from one of my models in a table <% @events.each
Here is a simplified table structure: TABLE products ( product_id INT (primary key, auto_increment),
I have a table that maintains rows of products that are for sale (
I currently have a table listing all of the products that are in the
I have problems with how I should structure my product listing pages, products pages,
My site has several listing pages and on each page, I'd like to enable
I got a templated control (a repeater) listing some text and other markup. Each
Here is the problem. lets say I have a product category table and a
I want to know how can I show only configured products on listing page?
I have an index page for listing products. From this page I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.