I want a textarea with some default text. When the user clicks in the textarea the default text should be deleted. How can I make value of a textarea disappear on click?
Just try the below snippet. First time you click on the text area it empties the content.
$('#textarea').focus(function(){ $(this).empty(); });