jQuery html method

jQuery html method : is used to get the html of the given element.

Syntax of jQuery html() method

Get Html

Note : It does not accepts any argument.

jQuery html Method Example 1

jQuery html() Method – Example 1 – Get The Html

Try it »

Set Html

html-data: string containing the html.

jQuery html() method Example 2

jQuery html Method – Example 2 – Set The Html/h3>

Try it »

📖 Read More