jQuery reemplazar innerhtml
$("#myID").html("<div>New inner html</div>"); //replace element innerHTML in jQuery
Grepper
$("#myID").html("<div>New inner html</div>"); //replace element innerHTML in jQuery
$(element).html("Hello World");
$('.click').click(function() {
// get the contents of the link that was clicked
var linkText = $(this).text();
// replace the contents of the div with the link text
$('#content-container').html(linkText);
// cancel the default action of the link by returning false
return false;
});
var itemtoReplaceContentOf = $('#regTitle');
itemtoReplaceContentOf.html('');
newcontent.appendTo(itemtoReplaceContentOf);