Top Categories
Jquery html() method with example | Part - 30 | #tutorial007
- Category:
- Sub Category:
We will learn about jquery html() method with suitable example. jQuery html() Method The html() method sets or returns the content (innerHTML) of the selected elements. When this method is used to return content, it returns the content of the FIRST matched element. When this method is used to set
We will learn about jquery html() method with suitable example. jQuery html() Method The html() method sets or returns the content (innerHTML) of the selected elements. When this method is used to return content, it returns the content of the FIRST matched element. When this method is used to set content, it overwrites the content of ALL matched elements. html() is used to set an element's content, any content that was in that element is completely replaced by the new content. Additionally, jQuery removes other constructs such as data and event handlers from child elements before replacing those elements with the new content. So watch the full video and learn what is html() method and how to use html() method in jquery.