javascript - jQuery .change not triggering -


i receive no console messages while modifying text in input.

 <script>  $( document ).ready( function () {       $( "#oldpassword" ).change( function() {            console.log( "old password changed!" );       });  });  </script>   <form>     <label for="oldpassword">old password</label>     <input id="oldpassword" />     <div id="oldpasswordcheck"></div> 

... , of course rest of form code. cutting code down such barebones reveals problem, not time. ideas?

your code working here, need keyup change triggered when focus gone out of input , need event key pressed.

live demo

$(document).ready( function () {     $( "#oldpassword" ).keyup( function() {         console.log( "old password changed!" );     }); }); 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -