Answers for "textarea id and how to get it text in jquery"

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 "textarea id and how to get it text in jquery"

Browse Popular Code Answers by Language