jquery replace innerhtml

HTML
$("#myID").html("<div>New inner html</div>"); //replace element innerHTML in jQueryvar itemtoReplaceContentOf = $('#regTitle');
itemtoReplaceContentOf.html('');
newcontent.appendTo(itemtoReplaceContentOf);
Source

Also in HTML: