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 ...

0 Comment

    Leave a Reply

    Your email address will not be published.

    14 − four =

    Simple jQuery Accordion Collapse

    Custom coded Simple jQuery Accordion with toggle a ...

    Jquery Custom Tab

    ...

    Cookie Popup with jQuery

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

    Sticky Menu Show when scrolling up

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

    JQuery Auto Hight

    jQuery height change after a specific time interva ...

    ACF

    JavaScript

    jQuery

    Others

    PHP

    WooCommerce

    WordPress

    skype

    Need Coding Help?

    Connect Skype
    top