jquery to update an html code example
Example 1: jquery replace innerhtml
$("#myID").html("<div>New inner html</div>"); //replace element innerHTML in jQuery
Example 2: inner html jquery
$('#selector').text('Your text here');
$("#myID").html("<div>New inner html</div>"); //replace element innerHTML in jQuery
$('#selector').text('Your text here');