Min and Max

Applies to any ranged type:
<form>
<p>
  <label>Pick a  number between 1 and 12: 
  <input type="number" name="number" min='1' max='12' />
  </label>
</p>
<p>
  <label>Time: 
  <input type="time" min="08:30" max="12:00" name="morning" />
  </label>
</p>
<p>
  <label>Pick a day: 
  <input type="date" name="date" min="2007-03-22"/>
  </label>
</p>
<p>
  <label>Month: 
  <input type="month" name="month" />
  </label>
</p>
<p>
  <label><input type="submit" value="Send data" /></label>
</p>
</form>


Previous | Next | Top | Cafe con Leche

Copyright 2007 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified March 8, 2007