This is what I had tried:
<script>
function clear(){
document.getElementsByTagName('textarea').value='';
}
</script>
<textarea>Test1</textarea>
<textarea>test2</textarea>
<input type="button" value="clear" onclick="clear()">
I'm not sure why it isn't working. Help is much appreciated.
