title: Check if a textbox contains numbers only
body: <p>How to check if a textbox contains numbers only?</p>
  
  <p>While googling I came across this. But I'm wondering if <code>isNumeric</code> can be used for this purpose or if there are more simpler ways of checking if a textbox has a numeric value.</p>
  
  <pre><code>var query = $('#myText').val();
  if (parseFloat(query) == NaN) {
      alert("query is a string");
  } else {
      alert("query is numeric");
  }
  </code></pre>