$("#someDiv").bind("DOMSubtreeModified", function() {
alert("tree changed");
});
// 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
});
// On element change.
$('mydiv').bind('DOMSubtreeModified', function () {
console.log('changed');
});