get value of textarea in jquery code example
Example 1: capture textarea value
<textarea id="myTextarea">
Hello World
</textarea>
<script>
var x = document.getElementById("myTextarea").value;
</script>
Example 2: jquery get textarea text
$('input#mybutton').click(function() {
var text = $('textarea#mytextarea').val();
//send to server and process response
});
Example 3: get textarea value jquery
var message = $('textarea#message').val();