HTML is <a>ref</a>
<a>ref</a>
I need to get <a>ref</a>text
<a>ref</a>text
How can i do this? $('a').append('text') only insert text into <a></a>, not after it
$('a').append('text')
<a></a>
Use after or insertAfter:
after
insertAfter
$('a').after('text'); $('text').insertAfter('a');
2.1m questions
2.1m answers
60 comments
57.0k users