function triggerd by div resize

function triggerd by div resize

I want to make something like this
  1. <div id="resizeable"> some stuff here </div>
  1. $("#resizeable").bind("resize", doSomeThing);
  2. function doSomeThing() {
  3.  // some code
  4. }
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.