title: jQuery sum of all class text as numbers
body: <p>I'm looking to sum up all text as numbers inside the class called "sent" but when I alert the below code it gives output of zero:</p>
  
  <pre><code>var sum = 0;            
  var thedate = $(".date:contains('15th February 2012')");
  
     $(thedate).each(function() {              
      var sents = $(this).next('.sent').text();
  
      var sentsnumb = parseFloat(sents);
  
          sum += Number($(sentsnumb));
  
  });
      alert(sum);
  </code></pre>
  
  <p>Here is my html:</p>
  
  <pre><code>&lt;tr&gt;
     &lt;td class="date"&gt;15th February 2012&lt;/td&gt;
     &lt;td class="sent"&gt; 5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
     &lt;td class="date"&gt;15th February 2012&lt;/td&gt;
     &lt;td class="sent"&gt; 5&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
     &lt;td class="date"&gt;15th February 2012&lt;/td&gt;
     &lt;td class="sent"&gt; 10&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
     &lt;td class="date"&gt;15th February 2012&lt;/td&gt;
     &lt;td class="sent"&gt; 10&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Desired output from above would be the number "30".</p>