sadaf2605 sadaf2605 - 5 months ago 46
HTML Question

js form update while typing

I can update form using js, when user hits enter after something on a html form or when he

"submit" button, but I want it to update form while the user is typing something.

I know that I can do
Infinity loop
yet it is not a good idea or I can check after intervals but it will cause unnecessary checking what I don't want.


Use keyUp event handler with the input field contained within your form.

References: Javascript, jQuery


You missed round brackets at function definition, check the updated fiddle