jquery replacewith only one element code example Example: jqueryreplace content of div $('#content-container').html(linkText);