jquery set innerhtmk code example
Example 1: jquery replace html
$(element).html("Hello World");
Example 2: innerhtml jquery
var itemtoReplaceContentOf = $('#regTitle');
itemtoReplaceContentOf.html('');
newcontent.appendTo(itemtoReplaceContentOf);