Is it possible to create an event listener in jQuery that can be bound to any style changes? For example, if I want to \"do\" something when an element changes dimensions, o
I had the same problem, so I wrote this. It works rather well. Looks great if you mix it with some CSS transitions.
function toggle_visibility(id) { var e = document.getElementById("mjwelcome"); if(e.style.height == '') e.style.height = '0px'; else e.style.height = ''; }