menu

jQuery text method


jQuery text method : is used to read or write the text in the html.


Syntax of jQuery text() method

Get Text

Note : It does not accepts any argument.

jQuery text Method with syntax

jQuery text() Method – Example 1 – Get The Text

Try it »

Set Text

text: String,Number or Boolean to be set as content.

jQuery text Method with syntax

jQuery text() Method – Example 2 – Set The Text

Try it »


User Ans/Comments

📖 Read More


Advertisements