开发者

table structure is not coming properly in FF with jQuery

开发者 https://www.devze.com 2022-12-11 14:47 出处:网络
I have one table having 10 rows.Now on page load lets say first 7 rows are showing and I have blocked last 3 rows using jQuery.

I have one table having 10 rows.Now on page load lets say first 7 rows are showing and I have blocked last 3 rows using jQuery. Now on click of a span I want to show last 3 rows..its working fine in IE but not in FF. in FF, when I am loading last 3 rows , 开发者_StackOverflow中文版the first 7 row css stops working , I mean from 2 nd col, it starts to be right aligned, thus breaking the whole table structure, but the last 3 roes are coming in proper place.

 $("tr").slice(index).css("display", "block");

I have tried to change the display prop to table/inline-table..but its of no use. Can somebody help?


How about just setting it to its default by specifying a blank string?

$('tr').slice(index).css('display', '')
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号