inject html in jquery code example
Example 1: innerhtml jquery
var itemtoReplaceContentOf = $('#regTitle');
itemtoReplaceContentOf.html('');
newcontent.appendTo(itemtoReplaceContentOf);
Example 2: jquery add
$( "p" ).add( "div" ).addClass( "widget" );
var pdiv = $( "p" ).add( "div" );