jQuery on Dom Change
$("#someDiv").bind("DOMSubtreeModified", function() {
alert("tree changed");
});
Matteoweb
$("#someDiv").bind("DOMSubtreeModified", function() {
alert("tree changed");
});
$("select [name='element_name']").change(function(){
// condition goes here
});
$("#input").change(function(){
alert("The text has been changed.");
});
// On element change.
$('mydiv').bind('DOMSubtreeModified', function () {
console.log('changed');
});