Answers for "get textarea 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

Browse Popular Code Answers by Language