Re: [jQuery] Re: jQuery does not stripe visible table rows correctly
Thank you. Have a great New Year.
2010/1/1 Šime Vidas <sime.vidas@gmail.com>
Well, definitely the shorter version :)
You can put a comment above to remind you that :even and :odd are
tricky
// Remember, :even and :odd are zero-based, so it's reversed
$('#foobar tbody tr:visible:even').addClass('rowodd');
$('#foobar tbody tr:visible:odd').addClass('roweven');
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home