jquery how to trigger change javascript code example
Example 1: jquery trigger change event
$(selector).trigger("change");
Example 2: on change jquery
$("input").change(function(){
alert("The text has been changed.");
});
$(selector).trigger("change");
$("input").change(function(){
alert("The text has been changed.");
});