jquery - check for changes in form via Ajax -


i've got little auto-suggest jquery script. when start typing looks database matches via ajax post. when click on result input field value wich picked.

that works want check if value of input has changed value.

what tried

$("input").change(function(){    alert('change');  });  

but doesnt work.

is there way check if form input field has changed value ajax post?

.changed not function in jquery.

here function .change use that:

$("input").change(function(){      alert('change');  }); 

use following function instead of above:

$(document).ready(function(){ $(".ui-autocomplete").click(function(){      alert("changed input field."); });  }); 

i using class ui-autocomplete told using jquery autocomplete. can detect name of class or id using firebug.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -