$('#divElem').height() should work. You don't need the dimensions plugin
unless u want the height of the "document" or "window".

In case, you are looking for the height that includes margin as well, then
dimensions plugin has a method called outerHeight() that might help u.

-GTG


On 8/23/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
>
> You'd want to use the .css method:
>
> $('#divElem').css('height') ;
>
> Or you could try out the dimensions plugin. That works much better.
>
> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of tester
> Sent: Thursday, August 23, 2007 11:50 AM
> To: jQuery (English)
> Subject: [jQuery] how to get the height of a div?
>
>
> Hi,
>
> how I can get the height of a div? There is a div element in the xhtml DOM
> filled with dynamic content from a database. The height depends on the
> database content.
>
> I tried something like this: $('#divElem').height($
> ('#divElem').getMaxHeight()); but it didn't work.
>
>
>

Reply via email to