$("#element_id").width() problem

$("#element_id").width() problem

I am fairly new to jQuery.  I have a <div id="myDiv"> (with absolute position) containing a number of sub-elements (some hidden) including other divs.  The function $("#myDiv").height(); or $("#myDiv").width(); returns 0 even though myDiv is about 850X1000 px as measured on the screen.  Can anyone set me straight about this?  Thanks.