EDITABLE CODE:
LiveDemo:jQuery - Replace Elements with replaceWith() Method
Note: The parameters of the method can be an element, HTML string or jQuery Object.