Scroll to top

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


Notice: Undefined variable: string in /home/u665484253/domains/wpcodekit.com/public_html/wp-content/themes/twentytwenty-child/functions.php on line 61

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" );
}     
});

}

 

Get more information

Read More Posts

Leave a Reply

Your email address will not be published.