How To Get Text of TextArea Using jQuery

For More Videos Visit Our YouTube Channel




Here we consider how to get the text of textarea using jQuery. Lets start with one example here. Suppose we have a textarea inside form as shown below.

How To Get Text of TextArea Using jQuery, Get Text of TextArea Using jQuery, Get TextArea Text, Get TextArea Text Using Jquery, jQuery Val, TextArea Text Using Jquery, TextArea Text, Get Text of TextArea, Get Text of TextArea Using JavaScript, jQuery Get TextArea Text, jQuery Get Text Of TextArea, jQuery, HTML, PHP

In jQuery, we can use Value attribute for getting the text of TextArea. Just find the TextArea by using its ID and fetch the Text using jQuery Value attribute.

$(function () {
         var result = $('#txtAreaID').val();
});



That's all, by using jQuery Value Attribute, we can get the text of TextArea.