I have several list elements that look like this:
<li><a href="#" id="list1">List 1 Values</a></li>
<li><a href="#" id="list2">List 2 Values</a></li>
My current solution is to replace the entire html string like so:
$('#list1').html('List 1 Values<span>150</span>');
Is there a better way to add/remove the span tag inside a list item?
See
.append()documentation.