Here’s a quick answer to that: Give all your TextBoxes a class name and use the jQuery ‘keyup()’ and ‘each()’ methods to compute the sum. value); document. So the question is how can I change the way the script calculate the value from 'name' to 'id'. //-->