Tag: apply css in even childs of parent

How can we apply css in even childs of parent node using JQuery library.

December 26, 2009 | Filed Under JQuery | Leave a Comment

$(”tr:even”).css(”background-color”, “#bbbbff”);
Will apply background-color in even <td>’s of table .

Article written by urooj

© PHPInterviewQuestion.com 2009 - 2010

eXTReMe Tracker