Script analysing DIV height non function
I have the following script that is not appearing to work. var height = $('#sidebar1').height(); var pageHeight = $(window).height(); if ((height) > 600) { alert('haha'); } The ineveitable conlcusion to this script is to have it analayse against pageHeight rather than 600, but I cannot get this to work even with 600. I can only conclude it is something to do with this div: #sidebar1 being a floaty stick element. Here is its CSS. .sidebar { float: right; width: 190px; padding-top:8px; } The script is part of a load whereby the div: #sidebar1 's height expands as content is loaded in based on