A simple jQuery function to add listener on attribute change.
http://hacks.mozilla.org/2012/05/dom-mutationobserver-reacting-to-dom-changes-without-killing-browser-performance/ https://developer.mozilla.org/en/DOM/Mutation_events https://developer.mozilla.org/en/DOM/DOM_Mutation_Observers http://msdn.microsoft.com/en-us/library/ie/ms536956%28v=vs.85%29.aspx
DOMAttrModified
- Supported in IE 9, FF and Opera
MutationObservers
- is very new and it is supported in FF and Chrome 18.
onpropertychange
- Only in IE