Are there any libraries of scripts available for validation of input fields in forms?

John Zukowski

Nitesh Naveen points out that Netscape provides just such a library at http://developer.netscape.com/docs/examples/javascript/formval/overview.html. Just include FormChek.js and you'll have support for validating email addresses, dates, credit card numbers, zip codes, and phone numbers. You'll also find support routines for remove from a string characters which are/are not in a "bag" of selected characters, reformating a string, adding delimiter characters, stripping whitespace/leading whitespace from a string, and reformating U.S. phone numbers, ZIP codes, and Social Security numbers.