jQuery html() method example

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

Previous
In this post,  we are going to see jQuery html method.

html method is used to get html content of first matched elements,  other elements will be ignored and html(‘new html content’) is used to set html content for all matched elements.
Syntax for html() :
Syntax for html(‘new html content’) :
Let’s understand with the help of example:

Live demo:Jquery html method example on jsbin.com

Previous

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