change the html of a div jquery code example
Example 1: jquery replace html
$(element).html("Hello World");
Example 2: innerhtml jquery
var itemtoReplaceContentOf = $('#regTitle');
itemtoReplaceContentOf.html('');
newcontent.appendTo(itemtoReplaceContentOf);