codeGK
Code it ALL
jQuery get html() - CodeGK

♦ jQuery get html()

♣ Example1: jQuery get html()

Returns the HTML content of selected HTML element, i.e, the output will also have tags along with text.
Below is the representation of jQuery get html() Syntax.
Basic Syntax
$(selector).html();
selector: the HTML element to be selected
html(): syntax for selecting text with html tags.
In this example, .
Example
Input:
Output: