How to change the Content of a with JavaScript

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:

Leave a Comment