jquery rewrite html code example
Example 1: jquery replace innerhtml
$("#myID").html("<div>New inner html</div>"); //replace element innerHTML in jQuery
Example 2: jqueryreplace content of div
$('#content-container').html(linkText);
$("#myID").html("<div>New inner html</div>"); //replace element innerHTML in jQuery
$('#content-container').html(linkText);