jquery alternate table row colors for a specifiq table
Posted
by TIT
on Stack Overflow
See other posts from Stack Overflow
or by TIT
Published on 2010-05-24T13:54:05Z
Indexed on
2010/05/24
14:01 UTC
Read the original article
Hit count: 315
JavaScript
|jQuery
i have two tables. <table id='1'></table>
and <table id='2'></table>
. When i put this code:
$(document).ready(function()
{
//for table row
$("tr:even").css("background-color", "#F4F4F8");
$("tr:odd").css("background-color", "#EFF1F1");
});
Both the tables got it alternate row colors, which i dont want, i want only to color the table with id=2. how it can be accomplished?
© Stack Overflow or respective owner