title: JQuery find between two text values
body: <p>I am running this code into my jquery script, with this method i can detect only values that are higher or lower but not between them. </p>
  
  <p>For example: the first statement says lower than 1. </p>
  
  <p>How to change it and make between 0-1. </p>
  
  <p>Second statement between 1-29... </p>
  
  <p>Third statement 29-49 and so on... </p>
  
  <p>The code works fine, just need that between, because the statement with higher value overwrite all the others... Any thoughts ? </p>
  
  <pre><code>$(document).ready(function(){
          $('.table td').each(function(){
              if($(this).text() &lt;1) {
                  $(this).css('background-color','#fff');
              }
              else if($(this).text() &lt;29) {
                  $(this).css('background-color','#9A271C');
              }
              else if($(this).text() &lt;49) {
                  $(this).css('background-color','#BA650E');
              }
          });
      });
  </code></pre>