I am using jQuery to calculate some sizings and add CSS to an element like this..
jQuery(document).ready(function(){
jQuery(document.body).css("margin-top", jQuery(".myelement").height());
});
The problem is that the function fires before the myelement has actually appeared so cant get the height.
Is there a way to wait until / if .myelement is rendered before running the function? I did look at load but I think that is now deprecated