showing results for - "javascript clear text in textarea"
Ken
24 Oct 2017
1// HTML
2<textarea id='output' rows=20 cols=90></textarea>
3<input type="button" value="Clear" onclick="javascript:eraseText();"> 
4
5// JS
6function eraseText() {
7    document.getElementById("output").value = "";
8}
queries leading to this page
empty textarea javascriptclear textarea jsjs clear text areahow to clear jtextareahow do i clear the content of textarea in jsclear text area jsclear text area in javascripthow to clear inout of textareaclear html textareatextarea delete text onclickhow to clear textarea in javascripthow to clear an html text area using jshtml textarea clear valuehow to clear a text area with javascriptclear textarea programmatically jsjavascript erase textareaclear a textarea javascriptclear data from textareahow to clear textarea value in javascriptjavascript remove text area on clickclear text area value in javascriptjavascript clear text in textareaclear textarea clear javascriptclear the textarea in javascriptjavascript textarea remove how to clear the text from textarea using jqueryjs empty textareajs textarea clearclear a text areaclear a textarea jsjavascript textarea clearvalueclear txt areajs clear text area not wokringclear textarea valueclear text areajs textarea resetclear a jtextareajavascript textarea value clearhow to clear textareaclear everything in the textarea using jsjavscript clear textareaclear text jtextarearemove textarea contenttextarea clear text javascripthow to clear a textarea after click in javascriptclear a text area jsjavascript clear text from textareahtml textarea clear textdefault text clear textarea htmljavascript clear text areajavascript clear textarea inputtext area clearclear textarea and append javascriptreset textarea javascriptjavascript textarea clearclear textarea javascripthow to clear text area in javascriptjavascript remove textarea valuehtml clear textareatextarea clearhtml javascript clear textareaclear textareahow to empty textarea in javascripthow to clear a textarea with javascriptclear the contents of a textarea javascriptjs reset textareaclear textarea with jsjtextarea clearmake textarea empty in jshow to delete textarea value after send in javascriptjs clear textareahow to clear text areajavascript onclick remove textarea fieldhow to textarea clear in htmltextarea clear value javascripthow to clear a textarea in javascripthow to reset textarea in javascriptjs how to clear textarea fieldjavascript clear textarearemove text from textarea javascriptvanilla javascript textarea delete textjavascript code to clear textarea formjavascript get textarea valuetextarea javascript clearhow to clear a jtextareahow to remove text from textarea in javascripthow to clear a textarea using javascripthhow to clean etxt areahtml textarea clear default textjavascript clear text in textarea