title: How to hide div using jquery or java script if value is 0.00?
body: <p>Hello i would like to hide a span and a div if the value is 0.00..here is my code</p>
  
  <pre><code>&lt;span class="price-old"&gt;&lt;%=getCurrentAttribute('item','custitem_sumisho_listprice')%    &lt;/span&gt;
  &lt;span class="price-new"&gt;&lt;%=getCurrentAttribute('item','custitem_sumisho_onlineprice')%&gt; &lt;/span&gt;
  &lt;div class="save-sale" style="font-size: .8em; padding-top: 4em"&gt;&lt;%=getCurrentAttribute('item','custitem_sumisho_totalsave')%&gt;
  </code></pre>
  
  <p></p>
  
  <p>In the above code if the div of class="save-sale" will have 0.00 value then i would like to hide the class="price-old" and class="save-sale".Here getattribute tag will get the value of item price.</p>
  
  <p>I have tried the below jquery but its not working</p>
  
  <pre><code>&lt;script type="text/javascript" src="/site/js/jquery-1.10.2.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $(function () {
  if ($(".save-sale").text() == "0.00") {
  
   $(".save-sale").hide();
  }
  });
  &lt;/script&gt;
  </code></pre>