function triggerd by div resize
I want to make something like this
- <div id="resizeable"> some stuff here </div>
- $("#resizeable").bind("resize", doSomeThing);
- function doSomeThing() {
- // some code
- }
However, I was unable to bind resize to a html element. I tried with bind, live, on and resize functions and neither worked like this. It only worked on $(window).resize()
Keep in mind that I tried these ways, that are available after my version of jQuery, but I must only use jQuery 1.4.4.
Thanks.