I have some html:
<span class="variantprice"><span class="pricelabel">
Preis </span>€ 240,00 (CHF)</span>
Whats the best way to remove the (CHF) using jquery? OR even CSS???
Using jQuery:
$(".variantprice").html(function(){
return $(this).html().replace(" (CHF)", "");
});
See Demo: http://jsfiddle.net/AYZEs/
spanis an in-line element, and can be contained by either block-level, or in-line, elements.