theonlychase
9/27/2017 - 9:07 PM

Replace Text

Replace Text

$(".text_div").text(function () {
    return $(this).text().replace("contains", "hello everyone"); 
});

// Another Example without using a function and replace
nextQuery('body.nextCostco.nextSearchResults .nextNoSearchResultsText ul:nth-child(3) > li:first-child').text("Make sure that both the Item # and Pallet # are correct.");
nextQuery('body.nextCostco.nextSearchResults .nextNoSearchResultsText ul > li:nth-child(2)').text("Contact your Costco Regional Buyer to confirm information.");