Like this:
document.getElementById('myTextarea').value="";
or like this in jQuery:
$('#myTextarea').val('');
Where you have
<textarea id="myTextarea" name="something">This text gets removed</textarea>
For all the downvoters and non-believers:
-
value Property: Retrieves or sets the text in the entry field of the textArea element.
-
value DOMString The raw value contained in the control.