HI,
How can I add by jQuery, some class “test” just to what have style=”display:none”,
Output:
<tr style="display:none" class="test"></td></td></tr>
<tr></td></td></tr>
<tr style="display:none" class="test"></td></td></tr>>
<tr></td></td></tr>
Thanks
Well the “:hidden” qualifier is sort-of what you want:
That’s a little flaky because “:hidden” does not just apply to elements with an explicit “display:none” style. If you really want it to be robust, it would be better to give your hidden elements some other class name (even if it doesn’t have any CSS effect). Then you could write: