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
Post a Comment