southprojects DHTML Form Widget - Limit Allowed Keystrokes

Limit Allowed Keystrokes

- This demo uses the winxp theme.
- You can limit the keystrokes that the user can type into specific fields. See spformAllowed.
- In the INPUT class, define spformAllowed - {d | w | s} - to indicate which keystrokes are allowed (digits, alphanumeric or white space).

Limit Key Strokes Alphanumeric only
Digits only
Only letters
Allowed chars: AaBbCc and 123
The following are the Limit Keystroke rules.

    d             Digits only

    w             a-z A-Z _

    s             whitespace