pattern attribute


<form>
<p>
  <label>Card number: 
  <input type="text" name="cardnumber" 
         pattern='\d\d\d\d ?\d\d\d\d ?\d\d\d\d ?\d(\d\d\d)?'/>
  </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