Answers for "how to get text in textarea javascript"

1

get content of textarea javascript

document.getElementById("myTextarea").value
Posted by: Guest on October-08-2021
1

js get value from textarea

JS
document.querySelector("#textareaID").value;

JQuery
$("#textareaID").val();
Posted by: Guest on August-02-2021
0

hi;ight word in textarea javascript

$(function(){
  $("#search").click(function(){
    var area   = $('#test');
    var findWord = "rhoncus";
    var index = area.val().indexOf(findWord);
    area.focus().prop({'selectionStart': index, 'selectionEnd': index+findWord.length})          
  })
})
Posted by: Guest on February-15-2021
-2

javascript find textarea

if(document.getElementsByTagName('textarea').length > 0) {

}
Posted by: Guest on January-15-2020

Code answers related to "how to get text in textarea javascript"

Browse Popular Code Answers by Language