¿Por qué jQuery devuelve nulo para la altura del div?
$(document).ready(function(){
function getDocumentHeight()
{
// What's the page height?
var height = $('#mainbody').height();
alert(height);
...
getDocumentHeight(); }
jQuery sigue alertandonull
para la altura de mi#mainbody
div. No entiendo por qué, al menos debería ser500px
más o menos.