Jquery Replace specific text in all element

(function ($) {
    "use strict";

    jQuery(document).ready(function ($) {
        $('.secific_class').each(function() {
            var text = $(this).text();
            $(this).text(text.replace('old text', 'New text')); 
        });
    });

}(jQuery));

Previous Code

Update WooCommerce Delivery cost with condition

Change Delivery price base on what item in cart ...

Next Code

WooCommerce Discount based on Cart Item

A discount on the total order with condition based ...

Leave a Reply

Your email address will not be published.

twelve − 11 =

    skype

    Need Coding Help?

    Connect Skype

    ACF

    JavaScript

    jQuery

    Others

    PHP

    WooCommerce

    WordPress

    Sticky Menu Show when scrolling up

    Header bar only show when scrolling up with simple ...

    Jquery Custom Tab

    ...

    Counter up with a simple jQuery

    count down numbers with jquery ...

    Cookie Popup with jQuery

    Browser cookies popup accept, store cookies in bro ...

    Add Classe when the item visible

    Add class on scroll to viewport jquery code ...

    top