jquery replace text in div code example
Example 1: jquery replace element
$("elementsSelector").replaceWith( "New content
" );
Example 2: jquery replace text
$('#id1 p').each(function() {
var text = $(this).text();
$(this).text(text.replace('Kate', 'Nef'));
});
Example 3: jquery change text of div
$('#dialog_title_span').text("new dialog title");
Example 4: jquery replace text in div
$('#one span').text('Hi I am replace');