jquery replace certain text code example
Example 1: jquery replace text
$('#id1 p').each(function() {
var text = $(this).text();
$(this).text(text.replace('Kate', 'Nef'));
});
Example 2: jquery text replace
$(".text_div").text(function () {
return $(this).text().replace("contains", "hello everyone");
});