Answers for "how to clear the text from textarea using jquery"

3

javascript clear text in textarea

// HTML
<textarea id='output' rows=20 cols=90></textarea>
<input type="button" value="Clear" onclick="javascript:eraseText();"> 

// JS
function eraseText() {
    document.getElementById("output").value = "";
}
Posted by: Guest on June-24-2020
0

empty textarea using jquery

$('#message').val('');
Posted by: Guest on March-30-2020

Code answers related to "how to clear the text from textarea using jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language