Answers for "select every second row in html table"

C#
0

select every second row in html table

tr:nth-child(even) {
   // if it's even - rows 2,4,6 etc - apply styles
}

tr:nth-child(odd) {
   // if it's odd - rows 1,3,5 etc - apply styles
}
Posted by: Guest on April-13-2021

C# Answers by Framework

Browse Popular Code Answers by Language