I have a div on my website that should be the height of the window. This is what i got:
$(document).ready(function() { var bodyheight = $(document).h
Use the resize event.
resize
This should work:
$(document).ready(function() { $(window).resize(function() { var bodyheight = $(document).height(); $("#sidebar").height(bodyheight); }); });