tags:

views:

419

answers:

3

Dear all;

Having trouble with this jQuery function:

    $("#content").siblings().each(function(i){
     heightOfSiblings = heightOfSiblings + this.outerHeight();     
    });

Error is 'outerHeight is not a function.'

What am I doing wrong?

Thanks!

+1  A: 

outerHeight is a property

heightOfSiblings = heightOfSiblings + this.outerHeight;
nickf
+2  A: 

I think you will need $(this).outerHeight();

http://docs.jquery.com/CSS/outerHeight

patrick dw
that was it, thanks!
Tim Sheiner
A: 

Old thing but I have recently met the same problem and solution was to use the newest version of jQuery:)

Maga