jquery id on change code example
Example 1: jquery on change
$(document).on('change', 'input', function() {
// Does some stuff and logs the event to the console
});
Example 2: jquery on element change
// On element change.
$('mydiv').bind('DOMSubtreeModified', function () {
console.log('changed');
});