Substitua um elemento por outro jQuery

$( "#firstElem" ).replaceWith( "<h2>New Content</h2>" );
CoderHomie