on change body jquery code example
Example 1: jquery on dom change
$("#someDiv").bind("DOMSubtreeModified", function() {
alert("tree changed");
});
Example 2: value change event jquery
$("#input").change(function(){
alert("The text has been changed.");
});