innerhtml hqueyr code example
Example 1: jquery replace innerhtml
$("#myID").html("<div>New inner html</div>"); //replace element innerHTML in jQuery
Example 2: .innerhtml
// .innerHTML method is used to change the html contents of a DOM object
document.getElementById("demo").innerHTML = "Paragraph changed!";
Example 3: how to put html inside jquery text
$('div.demo-container').html('<p>All new content. <em>You bet!</em></p>');