JQuery code meaning in the post

Posted by Anumary under jQuery on 3/29/2012 | Points: 10 | Views : 955 | Status : [Member] | Replies : 2
what does this query means :

var bgColors = {
even: '#fbf9f7', odd: '#FFF'
};
$(document).ready(function () {
$("table.row_style tr:even").addClass("white");
$("table.row_style tr:odd").addClass("cream");
});

Is it changing the alternate row background color
OR
Is it changing the font color in the alternate rows?




Responses

Posted by: Rajni.Shekhar on: 3/29/2012 [Member] Bronze | Points: 25

Up
0
Down
i think it will change row background color.

Thanks,
Rajni Shekhar

Anumary, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajni.Shekhar on: 3/29/2012 [Member] Bronze | Points: 25

Up
0
Down
do u have a function addClass?

Thanks,
Rajni Shekhar

Anumary, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response