On 1/19/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> And you should also use style sheets to set the height of an element to
> make it reliable in all browsers:
>
> $(#myIFrame).css("height", y + "px");

Ahh good catch Klaus ... didn't even notice that. However, you can now
just simply pass the number and it will work as expected.

$('#myIFrame').css('height', y);

And if you wanted to save a few more characters you could write it like this.

$('#myIFrame').height(y);

--
Brandon Aaron

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to