Tag: apply css in last child of parent

How can we apply css in last child of parent using JQuery library.

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

$(”tr:last”).css({backgroundColor: ‘yellow’, fontWeight: ‘bolder’});
Will apply backgroundColor and fontWeight in last <td>  of table .

Article written by urooj

© PHPInterviewQuestion.com 2009 - 2010

eXTReMe Tracker