title: If statement from span "1 left"?
body: <p>I need to create an if statement in Js fetching when there's only <strong>1 left</strong> (product) in stock. How would I go about this?</p>
  
  <p>HTML on productpage:</p>
  
  <pre><code>&lt;div id="product-spec"&gt;
   &lt;div class="row"&gt;
    &lt;ul class="col-xs-12"&gt;
     &lt;li class="h4"&gt;
      &lt;span class="availabilty"
       &lt;span class="small"&gt;1 left&lt;/span&gt;
      &lt;/span&gt;
     &lt;/li&gt;
    &lt;/ul&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My Javascript so far:</p>
  
  <pre><code>if (.small == 1 left) { 
  // execute this code 
  }
  </code></pre>
  
  <p><a href="http://www.w3schools.com/js/js_if_else.asp" rel="nofollow">W3 Schools - If Statements</a> doesn't make me more sane.</p>