jQuery: textarea default value disppear on click
问题 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? I want it exactly like this, http://www.webune.com/forums/20101025cgtc.html But I wish it made in jQuery. <textarea id="textarea">This should be removed..</textarea> 回答1: I use this as its a bit more generic - it will clear out the element's value on focus, but return the element's value to the default value if empty. $("