listen div style changes jquery code example
Example: jquery on dom change
$("#someDiv").bind("DOMSubtreeModified", function() {
alert("tree changed");
});
$("#someDiv").bind("DOMSubtreeModified", function() {
alert("tree changed");
});