window resize

window resize


Hi,
I am trying to get the new width of a div after window resize. I am
using:
$(window).bind('resize', function() {
$myDivWidth = $('.mydiv').width();
}
but I am finding that the value is of the size BEFORE resize, rather
than after.     $(window).ready(function() doesn't fire on resize, so
how can I get the width after resize?
Thank you