How to add a class to every second th element in every tr element?
<tbody> <tr> <th><th> <th><th> </tr> <tr> <th><th> <th><th> </tr> </tbody> $(".highlited tbody:nth-child(1) tr th:nth-child(2) ").addClass("hidden");
How to add a class to every second th element in every tr element?
<tbody> <tr> <th><th> <th><th> </tr> <tr> <th><th> <th><th> </tr> </tbody> $(".highlited tbody:nth-child(1) tr th:nth-child(2) ").addClass("hidden");
Source: https://ru.stackoverflow.com/questions/509975/
All Articles