tags - How to add some text after the text in the span using jquery? -
i want insert text after text in span follows. want add × after tag1 "tag 1 ×". × after </span>
, means outside span. thanks.
bty, there suggestion delete button tags?
html:
<li><span>tag 1</span></li>
jquery:
$('li span').append('<p>×</p>');
var span = $('li span'); span.html(span.html() + '×');
is you're looking for?
if want in 1 line:
$(that).find('span')[0].innerhtml += '×';
Comments
Post a Comment