I have a list with breadcrumbs that is generated like this:
<div class="breadcrumps"><a href="#">Link1</a>›<a href="#">Link2</a>›<a href="#">Link3</a>›</div>
How can I remove the ‘›’ after the last a tag? Currently I have this code which doesn’t work…:(
$(document).ready(function () {
$('.breadcrumps');
$(this).find('a:last-child').remove('›');
});
thanks in advance!
Use substr:
http://jsfiddle.net/XxDfY/2/