how to get textarea value in jquery Example?

Rate this post

Today, We want to share with you get textarea value in jquery.In this post we will show you get value of textarea jquery, hear for how to get value in jquery? we will give you demo and example for implement.In this post, we will learn about how to get input value in jquery? with an example.

Free Live Chat for Any Issue

How to get the value of a textarea in jQuery ?

Example 1: capture textarea value

<textarea id="member_name">
Welcome TO

  var x = document.getElementById("member_name").value;

Example 2: jquery get textarea text

$('input#member_name').click(function() {
    var text = $('textarea#member_name').val();
    //send to jquery ajax server PHP and process output

Example 3: get value of textareas jquery


Use the jQuery val() method


<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Get Value from Textareas in jQuery -</title>
<script src=""></script>
            var message = $.trim($("#message").val());
            if(message != ""){
                // Display alert dialog if value is not blank
    <textarea id="message" rows="5" cols="50"></textarea>
    <p><button type="button">Get Value</button></p>
    <p><strong>IMP Note:</strong> Type something in the textareas as well as click the button to see the result.</p>


I hope you get an idea about jQuery Get Value Of Input, Textareas and Radio Button.
I would like to have feedback on my blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.