Tag: apply css in odd childs of parent

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

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

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

Article written by urooj

© PHPInterviewQuestion.com 2009 - 2010

eXTReMe Tracker