Board Logo

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

,'alphaws' : /^[a-zA-Z.-s]*$/
,'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.


Back to forum: