how to change whats in a textarea code example Example: how to change whats in a textarea document.getElementById('myTextarea').value = ''; // in html: //This text gets removed