SyntaxFix
Write A Post
Hire A Developer
Questions
Unless you can get PHP to label that element with a class you are better to use jQuery.
jQuery(document).ready(function () { $count = jQuery("ul li").size() - 1; alert($count); jQuery("ul li:nth-child("+$count+")").css("color","red"); });