<ul class="subnavigation"> <li><a href="http://damnralph.com">Damn Ralph</a></li> <li><a href="http://jquery.com">jQuery</a></li> <li><a href="http://brandensemble.com">BrandEnsemble</a></li> </ul>
$(document).ready(function(){ $(".subnavigation li:lt(" + ($(".subnavigation li").length - 1) + ")").append(" | "); });
$(document).ready(function(){ $(".subnavigation li:not(:last-child)").append(" | "); });
This works by selecting all the li's except the last child (or the last li) in the container. This will work with multiple containers on a page if there are more then one. Thanks John for the tip.
Remember Me
a@href@title, b, blockquote@cite, em, i, strike, strong, sub, super, u