Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<div class="price-box">
   <span class="regular-price" id="product-price-2">
       <span class="price">$240.00</span>
   </span>               
   <a href="http://stemulation.com/order/sfs30.html" class="">
       <span class="label">Your Price:</span>
       <span class="price" id="product-minimal-price-2">$120.00</span>
   </a>
</div>
 
$(function() {
  $("a.minimal-price-link").each(function(){
    // it would be easy to wrap it with strike
    $(this).closest('.price-box').find("span.regular-price").wrap("<s>");
    // or you can also add a class
    // $(this).closest('.price-box').find("span.regular-price").addClass("strike");
  })
});
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers