JSFiddle - React, Tailwind, and code Playground

by arjuncc

HTML

<li class="item first">
<a class="product-image" title="מדפסת Epson LQ-690" href="http://adcs.gostorego.com/mdpst-epson-lq-690.html">
<img width="135" height="135" alt="מדפסת Epson LQ-690" src="http://s5169dbdce2040.img.gostorego.com/809E82/cdn/media/s5/16/9d/bd/ce/20/40/catalog/product/cache/1/small_image/135x/9df78eab33525d08d6e5fb8d27136e95/images/catalog/product/placeholder/small_image.jpg">
</a>
<h3 class="product-name">
<a title="מדפסת Epson LQ-690" href="http://adcs.gostorego.com/mdpst-epson-lq-690.html">מדפסת Epson LQ-690</a>
</h3>
<div class="price-box">
<span id="product-price-96-widget-new-grid" class="regular-price">
<span class="price" style="display: inline;">0.00 ₪</span>
</span>
</div>
<div class="actions" style="display: block;">
<button class="button btn-cart" onclick="setLocation('http://adcs.gostorego.com/checkout/cart/add/uenc/aHR0cDovL2FkY3MuZ29zdG9yZWdvLmNvbS8,/product/96/')" title="הוסף לסל" type="button">
<span>
<span>הוסף לסל</span>
</span>
</button>
<ul class="add-to-links">
<li>
<span class="separator">|</span>
<a class="link-compare" href="http://adcs.gostorego.com/catalog/product_compare/add/product/96/uenc/aHR0cDovL2FkY3MuZ29zdG9yZWdvLmNvbS8,/">הוסף להשוואה</a>
</li>
</ul>
</div>
</li>
<li class="item">
<a class="product-image" title="מתג HP 1910-48G Switch" href="http://adcs.gostorego.com/mtg-hp-1910-48g-switch.html">
<img width="135" height="135" alt="מתג HP 1910-48G Switch" src="http://s5169dbdce2040.img.gostorego.com/809E82/cdn/media/s5/16/9d/bd/ce/20/40/catalog/product/cache/1/small_image/135x/9df78eab33525d08d6e5fb8d27136e95/images/catalog/product/placeholder/small_image.jpg">
</a>
<h3 class="product-name">
<a title="מתג HP 1910-48G Switch" href="http://adcs.gostorego.com/mtg-hp-1910-48g-switch.html">מתג HP 1910-48G Switch</a>
</h3>
<div class="price-box">
<span id="product-price-109-widget-new-grid" class="regular-price">
<span class="price">2,431.00 ₪</span>
</span>
</div>
<div class="actions" style="display:...

JavaScript

$('.item').each(function(){

if($(this).find(".price:contains('0.00')")){

$(this).find(".price:contains('0.00')").hide();

$(this).find(".actions").hide();

}
});