jquery select p text code example
Example 1: jquery change text of div
$('#dialog_title_span').text("new dialog title");
Example 2: jquery find by innertext
$( "div:contains('innerText')" );
$('#dialog_title_span').text("new dialog title");
$( "div:contains('innerText')" );