jQuery .toggle() not working with TRs in IE

前端 未结 13 2437
暗喜
暗喜 2020-12-08 20:43

I am using jQuery\'s toggle() to show/hide table rows. It works fine in FireFox but does not work in IE 8.

.show()/.hide() work fine though

相关标签:
13条回答
  • 2020-12-08 21:19

    I found that while this does not work in IE8

    $('.tableRowToToggle').toggle();

    but this does work:

    $('.tableRowToToggle').each(function(){this.toggle()});

    Got the idea from the link jAST posted here before

    0 讨论(0)
提交回复
热议问题