title: jQuery get text as number
body: <p><strong>This code doesn't work:</strong></p>
  
  <pre><code>var number = $(this).find('.number').text();
  var current = 600;
  if (current &gt; number){
       // do something
  }
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div class="number"&gt;400&lt;/div&gt;
  </code></pre>
  
  <p>Seems there is some problem with converting <code>text()</code> from text-like value to number.</p>
  
  <p><strong>What is the solution?</strong></p>