jQuery has the resize() - event, but it just work with window.
resize()
jQuery(window).resize(function() { /* What ever */ });
This wor
There is a really nice, easy to use, lightweight (uses native browser events for detection) plugin for both basic JavaScript and for jQuery that was released this year. It performs perfectly:
https://github.com/sdecima/javascript-detect-element-resize