jquery change the content of a div code example
Example 1: how to set the contents of a div with jquery
$("#yourID").html("");
Example 2: jquery change text of div
$('#dialog_title_span').text("new dialog title");
$("#yourID").html("");
$('#dialog_title_span').text("new dialog title");