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

Line ending issue with Mercurial or Visual Studio -

java - Jtable duplicate Rows -

java - Run a .jar on Heroku -