title: how to use javascript to check if the first character in a textbox is a number?
body: <p>I'm making a simple form and having a textbox for street address....
  All I want to do is check if the first value entered is a number or not.</p>
  
  <p>How can I do it?</p>
  
  <pre><code>if(document.forms[0].elements[2].value.
  </code></pre>
  
  <p>that is all I have now but I'm not sure what I should add to it to check the first character only.</p>