Brian Morykon wrote:
> I was hoping to hide and show table rows with a slide effect. But it  
> seems that Firefox needs a display: table-row instead of a "display:  
> block" to make a row appear properly. While IE throws an error at  
> table-row and does fine with block.
> 
> While I didn't get the slide effect working, I did get the row to  
> appear properly by adding these functions:
> 
[snip]
> 
> Hope this helps someone -- or perhaps someone can help me find a  
> better way. Thanks!


You could find the default display value for a row by creating
a dummy row and checking the css display value, this should
be more reliable and future proof than browser sniffing
(in case MS ever support table-row!):

var rowdisplay = $('<tr></tr>').css('display');

Tested in FF2.0, IE7/6/5.5, Opera 9.02

Regards
- Mark Gibson

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

Reply via email to