title: Adding validation for date forms
body: <p>I'm fairly new to javascript, so just looking for a bit of help with adding validation to a form (purely JS/jquery only):</p>
  
  <p>Let's say I have the form <code>getByID("text")</code></p>
  
  <p>I want to add the validation to stop users entering a decimal place (whole numbers only), no letters or special characters (numbers only), value must not exceed 23 hours/59 minutes (two separate fields for HH:MM (so one must not exceed 23 hours, the other 59 minutes - see below)).</p>
  
  <p><code>getByID("HH")</code></p>
  
  <ul>
  <li>must not exceed digit 23 so 0-23 is allowed, no special chars/decimals/letters</li>
  </ul>
  
  <p><code>getByID("MM")</code></p>
  
  <ul>
  <li>must not exceed digit 59 so 0-59 is allowed, no special chars/decimals/letters</li>
  </ul>
  
  <p>If anyone could help with this, it would be greatly appreciated. Thanks in advance!</p>