Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

onclick remove textarea value

<input type="button" value="Clear" onclick="javascript: functionName();" >
you just need to set the onclick event, call your desired function on this onclick event.

function functionName()
{
    $("#output").val("");
}
Above function will set the value of text area to empty string.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #onclick #remove #textarea
ADD COMMENT
Topic
Name
1+6 =