Skip to content Skip to sidebar Skip to footer

Clear Button Empties Textarea But I Cannot Repopulate It

I am trying to create a web page where if a user clicks on a word it is presented in a text box if a word is clicked twice it does not appear again in the box the user can clear t

Solution 1:

Try changing $("#thediv").val(''); to $("#thediv").html('');, as in this jsfiddle.


Post a Comment for "Clear Button Empties Textarea But I Cannot Repopulate It"