Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get textarea value jquery

    <textarea></textarea>
    <button id="btn">Check Textarea Value</button>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script>
        $("#btn").click(function() {
            var txtArea = $("textarea").val();
            alert(txtArea); // alert the value of textarea
        });
    </script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #textarea #jquery
ADD COMMENT
Topic
Name
6+7 =