MikroSight.com

MikroSight.com

| Home | NPA/NPX |

Google
Web
MikroSight

CAPS 
A Form Field Validation Script

CAPS - this is a real simple routine that converts all letters in a field to UPPER case - great for state abbreviations.

function CAPS(InField)
 {    InField.value = InField.value.toUpperCase() }

To use this, add an onChange event handler to your form field. For example:

<input type="text" size="2" name="state" onChange="CAPS(this)" />