Replacing html element using replaceWith jquery function

Posted on 13-03-2017 by Nadir Latif


Source: http://stackoverflow.com/questions/8254703/how-to-set-outerhtml-with-jquery

The Jquery function replaceWith can be used to replace the outer html of an element