change element based on content jquery code example Example: jqueryreplace content of div $('#content-container').html(linkText);