Im using a script to replace a string of text and adding a class. However, I need to replace, or remove, ONLY the string in question and keeping any other text. How do I do this? In this example i want to remove "EU" but keep any other text on the string.
This is the script Im using at the moment:
$('body').ready(function(){
$( ".productboxArticlenumber:contains('EU')" ).text('newtext').addClass( "eu" ); });