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
You also need to do that in resize event, try this:
resize
$(document).ready(function() { $(window).resize(function() { var bodyheight = $(this).height(); $("#sidebar").height(bodyheight); }).resize(); });