replace text in div jquery code example
Example 1: jquery replace text
$('#id1 p').each(function() {
var text = $(this).text();
$(this).text(text.replace('Kate', 'Nef'));
});
Example 2: jquery change text of div
$('#dialog_title_span').text("new dialog title");