How would you add a span tag to text inside a hyperlink?
Now I am changing the existing text to something else using this:
$(document).ready(function() { $("a:contains('text')").text('new-text') });
I need a link to look like this when it parses:
<a href="/xxx.aspx">new-text<span class="someclass">some other text</span></a>
So I need to add this span tag inside
Any ideas?
source share