February 2, 2017
jQuery replace (for Beaver Builder)
Description:
Four ways of doing it. Tested only the first one.
Kind:
jQuery
Javascript:
//no1 jQuery(function($){ $(".pp-post-filters-wrapper .pp-post-filters li:first-child").text(function(index, text) { return text.replace('All','ALLES'); }); }); //no2 jQuery(function($){ $(".text_div").text(function () { return $(this).text().replace("contains", "hello everyone"); }); }); //no3 jQuery(function($){ $("#id1 p:contains('dog')").html("doll"); }); //no4 jQuery(function($){ $(".selector").replaceWith("string"); });