This is the code I'm using but this replace only the single word, how can I replace multiple words. Input: Good Morning, this is jack here. Output: Good Evening, this is stack here.
function deleteText() {
var my = document.getElementById('mytextarea');
var myvalue = my.value;
my.value = myvalue.replace("Morning", "Evening");
}
<textarea style="text-transform: uppercase; white-space: normal" cols="50" rows="3" id="mytextarea">Good Morning, this is jack here.
</textarea>
<input type="button" value="Delete" onClick="deleteText()">