Answers for "jquery how to get textarea value"

2

jquery get textarea text

$('input#mybutton').click(function() {
    var text = $('textarea#mytextarea').val();
    //send to server and process response
});
Posted by: Guest on May-30-2020
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

Code answers related to "jquery how to get textarea value"

Browse Popular Code Answers by Language