You can use bog standard HTML to do this - all 'modern' browsers support it:
<input type="text" ... ... maxlength="15" pattern="[a-zA-Z]{1,15}"
will only allow UPPER/lower case a to z up to a maximum length of 15 characters.
Nick
In reply to Re: regular expression to check if the textbox contains only special characters
by Linicks
in thread regular expression to check if the textbox contains only special characters
by rahulme81
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |