- $.load() method allows HTML or text content to be loaded from a server and added into a DOM element.
Syntax:
$.post(url,[data],[callback])
2. Specify selector with url to specify a portion of the response document to be inserted into DOM element.
$('#msgDiv').load('/demo.html #myHtmlContent');