I have a jQuery delegate which calculates the sum of textboxes when the user adds a number
So the totals work when the user tabs out.
The issue I am having is when the page loads and if there are already existing values the user has to click the text box and tab out for the totals to work.
The code I have is:
$body.delegate("input.actionvalue", "blur", function (e) {
}
I am not sure how to call this function when the page loads.
Thanks for your help.
Why don’t you put what you have inside
$body.delegate("input.actionvalue", "blur", function (e) { }in a function called e.g.checkValues()like so: