in reply to regular expression to check if the textbox contains only special characters
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regular expression to check if the textbox contains only special characters
by Your Mother (Archbishop) on Oct 18, 2016 at 12:20 UTC | |
|
Re^2: regular expression to check if the textbox contains only special characters
by rahulme81 (Sexton) on Oct 18, 2016 at 10:20 UTC |