title: if number is between two numbers by plus/minus 10 addclass
body: <h2><a href="http://jsfiddle.net/kM8xE/2/" rel="noreferrer">http://jsfiddle.net/kM8xE/2/</a></h2>
  
  <p>If I have the <code>div</code>s
  ​</p>
  
  <pre><code>&lt;div class="value"&gt;15&lt;/div&gt;
  &lt;div class="value2"&gt;20&lt;/div&gt;​
  </code></pre>
  
  <p>and jQuery</p>
  
  <pre><code>var actual = $(".value").html();
  var comparison = $(".value2").html();
  </code></pre>
  
  <p>how can i add class <code>.isbetween</code> to <code>.value2</code> if it's html value is between +/-10 of the html for <code>.value</code> ie. for this eg. a value between 5 and 25.</p>
  
  <p>I am not too good but i have tried and it doesn't work.</p>
  
  <pre><code>if(parseInt(actual)-10 &lt;= parseInt(comparison) &lt;= parseInt(actual)+10){
  $(".value2").addClass("isbetween");
  }
  </code></pre>