Hide product image if it’s a gif – JavascriptAugust 10, 2021 in Javascript Hide product thumbnail image, If it’s a gif image So here is the code: $( ".product-thumbnails img" ).each(function() { if ($(this).attr("src").indexOf(".gif") > -1) { $(this).css("display","none"); } }); Tags: javascript Share on Facebook Share on Twitter
0 Comments