Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: alphanum should accept spaces
madaneag
Junior Member

Posts: 5
Registered: 2/16/2005
Member Is Offline
posted on 3/23/2005 at 09:59 PM Reply With Quote
alphanum should accept spaces


i think alphanum format should accet spaces
but it does not
any suggestions how to change the script?
View User's Profile View All Posts By User U2U Member
katAttack
Junior Member

Posts: 6
Registered: 6/3/2005
Member Is Offline
posted on 6/3/2005 at 06:07 AM Reply With Quote

Quite simple once you see this.

Was
'alpha' : /^[a-zA-Z\.\-]*$/,

Now:

'alpha' : /^[a-zA-Z\.\-\s]*$/,

Adding the '\s' now allows spaces in fields defined as alpha
View User's Profile View All Posts By User U2U Member
joolzhaines
Junior Member

Posts: 8
Registered: 8/17/2005
Member Is Offline
posted on 10/4/2005 at 09:54 PM Reply With Quote
alphanum


Hi,

Does anyone know how to add the spaces to the alphanum validation. Cheers Joolz

Quote:
Originally posted by katAttack
Quite simple once you see this.

Was
'alpha' : /^[a-zA-Z\.\-]*$/,

Now:

'alpha' : /^[a-zA-Z\.\-\s]*$/,

Adding the '\s' now allows spaces in fields defined as alpha
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page Product Page
Product Demonstrations Product Demos
Registration Form Validation
Login Form Validation
Free Download Free Download
Product Documentation Documentation
Documenation Page
Change Log
Validators Comparison Table
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004