Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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 = "";
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript group by on array of objects 
Javascript :: js split last occurence 
Javascript :: javascript shuffle an array 
Javascript :: react native detect production 
Javascript :: javascript typeof undfined 
Javascript :: active link color different in react js 
Javascript :: yup only characters regex validation react 
Javascript :: how to empty an element in javascript 
Javascript :: regex for first three characters 
Javascript :: ScrollController not attached to any scroll views 
Javascript :: jquery cancel ajax request on click 
Javascript :: javascript convert number to binary 
Javascript :: mui usetheme 
Javascript :: golang convert json string to map 
Javascript :: how to make javascript progarm that randomly displayes a word 
Javascript :: get guild by id discord.js 
Javascript :: https package node post request 
Javascript :: how to make something spawn on a random x axis p5.js 
Javascript :: javascript check if date is less than today 
Javascript :: Codewars Calculate average 
Javascript :: javascript HOW set delay 
Javascript :: validador de telefone javascript 
Javascript :: react native textinput lowercase 
Javascript :: javascript select all table rows 
Javascript :: jquery change selected option to first 
Javascript :: axios try catch get error status cocxe 
Javascript :: sort ip address javascript 
Javascript :: express body-parser deprecated 
Javascript :: jquery get url 
Javascript :: columndefs in datatable not working while setting width jquery 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =