1//The html() method sets or returns the content (innerHTML) of the selected elements.
2$("button").click(function(){
3 $("p").html("Hello <b>world</b>!");
4});
5// syntax
6$(selector).html() // return content
7$(selector).html(content) // set content
8$(selector).html(function(index,currentcontent)) // set content using a function
9
1var itemtoReplaceContentOf = $('#regTitle');
2itemtoReplaceContentOf.html('');
3newcontent.appendTo(itemtoReplaceContentOf);