Answers for "js set text to textarea"

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

Browse Popular Code Answers by Language