textarea get value 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 value
var message = $('textarea#message').val();