.html( [ HTML_String ] )
Gets the innerHTML of an element. Sets the innerHTML of an element if HTML_String is provided and returns the new innerHTML.
Parameters
NameTypeDefaultPossibleDescription
HTML_StringStringOptionalHTML stringHTML String used to set innerHTML of the source element
Returns
TypeDescription
StringReturns innerHTML of the element
Example 1
Gets innerHTML of #cont div.
JS HTML
		$.domLoaded(function() {
			
			$.get("#get").on("click", function() {
			
				// get the innerHTML of #cont
				var co = $.get("#cont").html();
				alert(co);
				
			});
			
		});						
						
<body>

<div id="cont"> 
	<a href="http://www.nediljs.com" target="_blank" >Nedil JS</a>
</div>

<input type="button" id="get" value="Get innerHTML"" />

</body>
Result
Example 2
Sets innerHTML of #cont div.
JS HTML
		$.domLoaded(function() {
			
			$.get("#get").on("click", function() {
			
				// set innerHTML of #cont
				$.get("#cont").html("<a href='http://www.nediljs.com' target='_blank'>Nedil JS</a>");
				
			});
			
		});						
						
<body>

<div id="cont"> 

</div>

<input type="button" id="get" value="Set innerHTML"" />

</body>
Result