jQuery outerHTML Snippet
outerHTML
is a property that is provided by Internet Explorer that returns the full HTML of an element (including start and end tags). In jQuery, the html() function returns the innerHTML
of an element, which is just the HTML inside the element (not including the start and end tags).