I have the following code:
$('.breadcrumb:contains(",")').hide();
It does as expected and hides the entire breadcrumb,
but how would I go about just remove the comma?
==========
EDIT:
<div class="breadcrumb">
<a href="#">Link 1</a>,
<a href="#">Link 2</a>
</div>
==========
Thanks for any help
You can do it like this:
The
.html()function accepts a function, you can see the docs here. The above code replaces all commas in all.breadcrumbelements. Example here: http://jsfiddle.net/ZZG8p/