Board Logo

Validator enhancement
rremus - 6/18/2010 at 03:15 PM

,TV2={'alpha':/^[a-zA-Z.-]*$/
,'alphaws' : /^[a-zA-Z.-s]*$/
,'alphanum':/^w+$/
,'alphanumws': /^[0-9a-zA-Z.-s&]*$/

I added alphaws and alphnumws to handle business name and address strings that contain spaces and ampersand.

I also modified phone to handle parens: (608) 555-1212
I would suggest adding these to your code. Also, it would be nice to have the code non-minified to make it easier to edit as needed.

thanks


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/