renkai — 2012-07-30T13:36:00-04:00 — #1
Hi, I have a very simple form which has a few input fields that need to be calculated to a single input field with the total.
I'm wondering what jQuery function is best for automatically updating the total field, whenever one of the input fields is entered? Can you do .change with an input field? Or what about .blur? Thanks for any advice.
renkai — 2012-07-30T14:15:48-04:00 — #2
So it seems that .change() does work on an input field, which I like and may stick with. .blur() also works too.
Any differences here in browser support?
marplo — 2012-07-31T08:28:56-04:00 — #3
Try with query keydown. This event is triggered when user presses a key on the keyboard. It works for input text fields.