title: JavaScript for float and integer number validation
body: <p>I tried to make a javascript function to <code>validate integer values</code> from a text box. What is the best way to validate it so that only <code>integer and float</code> values are acceptable?</p>
  
  <p>Required java script function for number validation.</p>