Hi. I have an element generated by a plugin which I want to alter by inserting an HTML prefix. An example of the element would be this:
<span class="cost">£25 – £32</span>
I want the output to change from
£25 – £32
to become:
Cost: £25 - £32
I tried adding this in the page’s Javascript section:
jQuery(document).ready(function(){
jQuery('span.cost').before('Cost: ');
});
… but it didn’t work. Can you tell me where I’m going wrong? I appreciate that this falls outside your regular support but hoping you don’t mind sharing your expertise with me!
Many thanks
Mike.
