jquery change div text

Put the title in its own span.

<span id="dialog_title_span">'+dialog_title+'</span>
$('#dialog_title_span').text("new dialog title");

I think this will do:

$('#'+div_id+' .widget-head > span').text("new dialog title");