jquery get text of element and replace code example
Example 1: jquery replace text
$('#id1 p').each(function() {
var text = $(this).text();
$(this).text(text.replace('Kate', 'Nef'));
});
Example 2: jquery replace text in div
$('#one span').text('Hi I am replace');