title: Checking if a form field is numeric while using Jquery to get its value
body: <p>Basically, I'm doing this:</p>
  
  <pre><code>var phone = $("#phone").val();
  </code></pre>
  
  <p>Then I want to check if:</p>
  
  <p>1) Phone contains only numbers</p>
  
  <p>2) Phone contains at least 10 digits</p>
  
  <p>But the problem is, from my experience, using <code>$("something").val()</code> 
  returns it as a string so <code>isNaN()</code> fails. But I don't want use <code>parseInt()</code> either since it will change strings into numbers as well and then <code>isNaN()</code> will always pass.</p>
  
  <p>Thoughts?</p>