How to get the value of textarea in jQuery?

less than 1 minute read

You can get the value of the <textarea> control in jQuery using the below code snippet.

<textarea cols="60" rows="5" id="message"></textarea>
var message = $('textarea#message').val();

Leave a comment