How can I add a class to the first and second td in each tr?
THIS ONE |
-
2020-12-05 04:32
jquery provides one more function: eq
Select first tr
$(".bootgrid-table tr").eq(0).addClass("black");
Select second tr
$(".bootgrid-table tr").eq(1).addClass("black");