Jquery very sensitive "onchange" method -


is there way optimize "onchange" method text input field? let's if use microphone enter value input field, never use mouse change content inside text field, doesn't give me response, unless put pointer in textfield , out again.

html:

<input type="text" class=".target" /> 

jquery:

$( ".target" ).change(function() {   alert( "handler .change() called." ); }); 

the input event you're looking -- it's change, except fires every time text changed, without waiting until loses focus.

$( ".target" ).on("input", function() {     alert( "handler .change() called." ); }); 

fiddle


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -