gett content of elemt jquery code example
Example 1: jquery find by innertext
$( "div:contains('innerText')" );
Example 2: how to put html inside jquery text
$('div.demo-container').html('<p>All new content. <em>You bet!</em></p>');
$( "div:contains('innerText')" );
$('div.demo-container').html('<p>All new content. <em>You bet!</em></p>');