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 -

tags - Jquery Mixitup plugin help prevent handlers being destroyed -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -