jQuery – replace one element with another

$("#element_1").replaceWith("<div id="element_2">123<div>"); 

Comments are closed.