I want to remove the text \"By:\" from an element in my website. I want the rest of the text to remain there. How can I achieve that with jQuery? Thank you.
The HTML
a more global solution using regular expressions. This will replace By: even if your string structure will change.
By:
var str = $('div').text().replace(/By:/g, ''); $('div').text(str);
By: Anonymous From Minnesota