Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

onclick remove textarea value

<textarea id='comments' rows='4' cols='4'></textarea>
<input type="button" value="Clear" onclick="javascript:document.getElementById('comments').value='';">
 
PREVIOUS NEXT
Tagged: #onclick #remove #textarea
ADD COMMENT
Topic
Name
8+1 =