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

codeigniter - Fatal error: Call to undefined function lang() in CI Merchant using CardSave -

python - Received unregistered task using Celery with Django -

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