Ahh, I just asumed he wanted zebra striped rows, didn't really pay
attention to the thread title.
brian wrote:
Using children() would be better than find() but your suggestion would
skip every other row.
$('#your_table_id tr').children('td:odd').css('background-color', '#EEE');
Better, again:
$('#your_table_id tr').children('td:odd').addClass('SomeClassName');
On Mon, Jan 19, 2009 at 10:55 AM, Liam Potter <radioactiv...@gmail.com> wrote:
$('#your_table_id tr:odd').children('td').css('background-color', '#EEE');
brian wrote:
$('#your_table_id tr').find('td:odd').css('background-color', '#EEE');
You need to operate on each TR separately or jQuery will count each TD
without regard for the row it's in.
On Sun, Jan 18, 2009 at 10:32 PM, <vivekamar...@gmail.com> wrote:
I have table which need to have alternate column highlight and work in
IE&Mozilla both usingg jquery
Plz say suggestion.