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 -

R - Plot: How to format in 10-base scientific notation and put it text, mtex, title etc functions? -

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