title: Prevent html input type=number from ever being empty
body: <p>I know HTML 5 allows for input of type <code>number</code> where it only allows the user to enter inputs of type digits. When my page loads I set my default input to 0 but the user can just erase this value so that when the user hits submit a blank input (null) is submitted?  Is there a way so that when the user erases all numbers in the input the value defaults back to 0? I'm not talking about validation here.</p>
  
  <p>Trying to avoid an ugly JS hack but if that's the only way then I guess I'll have to go that route.</p>