Answers for "add text to textarea"

1

how to set textarea from string

document.getElementById('myTextarea').value = '';
Posted by: Guest on June-25-2021
1

javascript textarea.append

var $log = $('#myTextArea');

function log(text) {
    $log.append(text);
}

// Call log() in your button click event or whichever function 
// you want to use to print to the text area:

//...
log("Hello world!");
//...
Posted by: Guest on June-11-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language