// modify #inputId selector as per your code
$( "#inputId" ).change(function() {
alert( "Handler for .change() called." );
});
//OR
$("#InputId").on('change', function(){
alert( 'Handler for "change" called.' );
});
// OR
$("body").on('change', '#InputId', function(){
alert( 'Handler for "change" called.' );
});
$(document).on('change', 'input', function() {
// Does some stuff and logs the event to the console
});
$("#input").change(function(){
alert("The text has been changed.");
});
// On element change.
$('mydiv').bind('DOMSubtreeModified', function () {
console.log('changed');
});
$(".date").datepicker({
onSelect: function(dateText) {
console.log("Selected date: " + dateText + "; input's current value: " + this.value);
}
});