If you have a hidden text field whose value gets updated via an AJAX response. But when this value changes, you would like to fire an AJAX request.
How to detect the change?
try this :
$('#userid').change(function()
{
//fire your ajax call
});
//set value of hidden field by ID (#userid);
$('#userid').val().change();
0 Comments