I want to do some function when an attribute of a class changes. I wrote following JQuery:
var dropdown = $(".megadropdown").attr("style");
$(dropdown).change(function() {
alert("hi");
});
So i want to do alert
something whne the attriubute style
changes. It is not working.
Any suggestions?