21 March 2020

if jQuery contain and match value then replace with another value on load in jQuery?

if jQuery contain and match value then replace with another value on load in jQuery.




$(window).on("load", readyFn);
function readyFn() {
   $('#chart-container text').each(function() {
var ourText = $(this).text().toLowerCase(); // convert text to Lowercase
if(ourText.match('75%')) {
$(this).html( "h" );
}     
});

}

No comments:

Post a Comment

How to add re-captcha v3 on all Elementor forms using coding?

 Add re-captcha v3 on all Elementor forms using coding add_action('wp_footer',function(){     ?> <script src="https://www...