[jQuery] Hide specific characters
Hi There,
I am using a CMS product that does not enable me to hide cart totals
from their cart summary. I need to do this for this particular client.
Here a snippet of code for the rendered page:
<span id="catCartSummary" quote="False" vertical="False"><table
cellspacing="0" class="cartSummaryTable"><tr><td
class="cartSummaryItem">2 item(s), Total: $0.00 <a
class="cartSummaryLink" href="/OrderRetrievev2.aspx?
CatalogueID=34987">View Cart</a></td></tr></table></span>
I would like to hide (or remove) from the exact following section: ,
Total: $0.00\
So everything from the 'comma', the word 'Total' and all other numbers
and the $ sign. The 'View cart' I am already replacing with the
following code:
$(document).ready(function() {
$(".cartSummaryLink").html("View enquiry list");
});
Thanks in advance for your help.