Example of jquery replaceWith method read more at http://ebhor.com/jquery-replacing-content-of-div-using-replacewith/