Answers for "textarea to display results in real time javascript"

3

capture textarea value

<textarea id="myTextarea">
Hello World
</textarea>

<script>
  var x = document.getElementById("myTextarea").value;
</script>
Posted by: Guest on April-13-2020
0

get content of textarea javascript

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

Browse Popular Code Answers by Language