Find body element that has this text and .replace() it with something else
$('body').each(function() { var text = $(this).text(); $(this).html($(this).html().replace('.00', '').replace('.0', '')); });
.replace() text inside the element
$(".text-wrapper").text(function () { return $(this).text().replace("old text", "new replaced text"); });
.replace() multiple sentence or word from multiple elements
$('.listing-type, .listing-info-detail').text( function() { return $(this).text().replace("old word", "another old word").replace("new word", "another new word"); });
To remove element from element
$('.boss').html().replace('.worker1', '');
replace() mutiple characters with regex
replaceName = endName.replace(/[-?1234567890=]/g, ' '),
Change text of selector
var catLabel = $('body.page-node-add-forum .form-item-taxonomy-forums-und label'); $(catLabel).text( function() { return $(this).text().replace("Forums ", "Choose question category"); });
//redirect page into specific link window.location.replace("https://lazacode.org");