Jquery Replace Specific Text In All Element | Code For Developers

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. Required fields are marked *

If you find it useful

Buy me a coffee

ACF

Elementor

JavaScript

jQuery

Others

PHP

WooCommerce

WordPress

WP Plugin Dev

Sticky Menu Show when scrolling up

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

Adding and Removing Class Based on Element Visibility in the Viewport

Add class on element if it come in view and remove ...

Jquery Custom Tab

...

Animated jQuery Counter Up with the Intersection Observer API

Learn how to create a simple counter animation usi ...

Random slide order in slick sider

Change slick carousel slide order randomly ...

top