repolace html jaquery code example Example: repolace html jaquery $( "div.second" ).replaceWith( "<h2>New heading</h2>" );