sadaf2605 sadaf2605 - 1 year ago 101
Javascript Question

Update HTML form with Javascript while typing

I can update an HTML form using Javascript, when the user hits enter when on something on the form or when he triggers the

event on the "submit" button, but I want the form to be updated 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, which I don't want.

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download