I want to select:
<tr class='odd-row'>
and
<tr class='even-row'>
at the same time using jquery, is it possible?
$('tr.even-row, tr.odd-row')
You can also do
$('.even-row, .odd-row')
If you don't care that it's a tr.
You don't have to pre-mark the rows with an odd/even class. You can also do:
$('tr:odd, tr:even')
And jQuery will figure out which are odd/even on its own.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With