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