jQuery text method : is used to read or write the text in the html.
Syntax of jQuery text() method
Get Text
$(selector).text();
Note : It does not accepts any argument.
jQuery text Method with syntax
Set Text
$(selector).text(text);
text: String,Number or Boolean to be set as content.