> What if I specify a div as display:inline in my css? Hiding 
> then showing this div using the above script would change 
> it's display to block.

Good point!

I was about to suggest making a list of the block level elements to avoid
having to create DOM elements to test, but either approach would fall down
here.

> Would be good if it remembered the original setting.

And if the element started out hidden? :-)

The real problem here is that there is *no such thing* as "showing" an HTML
element. All you can do is set it to block or inline. This suggests that
show() is a mistake: you need separate showBlock() and showInline() methods.

-Mike


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to