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 &times after tag1 "tag 1 &times". &times after </span>, means outside span. thanks.

bty, there suggestion delete button tags?

html:

<li><span>tag 1</span></li> 

jquery:

$('li span').append('<p>&times</p>'); 

var span = $('li span'); span.html(span.html() + '&times'); 

is you're looking for?

if want in 1 line:

$(that).find('span')[0].innerhtml += '&times'; 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -