jQuery text() method example

Last updated on March 22nd, 2017 at 10:16 am

Previous
Next
In this post,  we are going to see jQuery text method example.

text method is used to get text of all matched elements and text(‘new text’) is used to set text for all matched elements.
Syntax for text() :
Syntax for text(‘new text’) :
Let’s understand with the help of example:

Live demo: Jquery text method example on jsbin.com

Previous
Next

Join Our News Letter - Stay Updated

Subscribe to Awesome Java Content.

Add Comment

Join Our News Letter - Stay Updated

Subscribe to Awesome Java Content.
You can like our facebook page Java2blog