jq on change or on click code example
Example: jquery on dom change
$("#someDiv").bind("DOMSubtreeModified", function() {
alert("tree changed");
});
$("#someDiv").bind("DOMSubtreeModified", function() {
alert("tree changed");
});