/ Published in: jQuery
Adds classes so that You can use things like Last Child, Nth Child and basically whatever you what and whatever is supported by jquery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(function(){ $("#nav li:last-child").addClass('last-child')})
URL: http://www.clintonhalpindesign.com/blog/?p=164