I’d like to insert the character entity ✓ (✓) at the end of a list item after an href has been clicked:
<a href="" id="answer1">Click here to answer</a>
<ul>
<li>Answer 1</li>
</ul>
$("#answer1").click(function(){
// Add ✓ to the end of the list item, such as: "<li>Answer 1 ✓</li>"
});
Any help is much appreciated!
Thanks!
I don’t know how much li elements you have, but for this html as you shown