How to run a function everytime a div changes its size?
Div’s size normally changes when the window changes its size, but NOT only;
The new width/height are not everytime set by css, but I need to get the real width/height of that height when everytime it changes.
I use jQuery, so based on this would be good;
It must work in chrome, ff2, ff3, ie6(if can’t work I might lag user’s browser with a timer xD) ie7, safari, opera… in other words the most popular browsers
thanks 😉
Here is a plugin that extends jQuery’s
resize()event to work on any element, not just the window.