Various fixes, most notably a fix for invisible required fields submitted by Ben Balzarini.
requireLength no longer requires a value
(that is the job of requireValue).
Added formChanged function, and optional
form argument to formFocus.
Remedial undefined check for Mac IE
(Microsoft's joke on the Mac community).
Fields are now referred to by label text using fieldname, if available, rather than field
name. This should make it more obvious to the user which field is
invalid.
Added requireConfirmation function,
useful for fields that require double entry (like passwords or email
addresses).
Fix to catch phony/example addresses.
Email addresses ending in example.com,
example.net, and example.org are now recognized as phony by checkEmail.
Multiple digit separators are now removed by fixFixed, fixFloat, fixInt, and fixMoney.
fixCreditCard is now aware of
Visa®, MasterCard®, American Express®, and Discover® card numbers. It will
still work for others, but these brands will be tested more
stringently for their correct number of digits (as provided by Valid Credit
Card Lengths and Prefixes on viacompras.com).
fixCreditCard now correctly computes
the check digit for cards with an odd number of digits (American Express®, JCB®, and very old Visa® card numbers) by working
right to left as required by the
algorithm.
Fixed checkIntRange and checkFloatRange functions.
Disabled fields are no longer validated.
Added dependants function.
Added checkIntRange and checkFloatRange functions.
fixPhone now accepts a parameter to
ignore extensions.
fixPhone now parses extensions.
requireRadio now checks to ensure a
value is selected only if there is a visible option.
Added fixTime24 to validate 24-hour
time entry.
Added fixCreditCard to validate
credit card number check digits.
Fixed fixSSN.
Added sep parameter to numeric
functions, to allow tolerance of digit grouping characters (i.e.
commas).
Added an exclusion for non-input form element loops. Apparently some UAs consider fieldset to be form elements.
Removed user agent check in favor of more accurate feature
exploration: canCheckByBlur.
Fixed error language for requireLength.
Fixed fixMoney and fixFixed. Both had trouble with small and negative numbers.
Better defined "blank" fields.
Fixed autoCheckByClass function.
Simplified word character list for email checking.
Added requireChecked function to
require checking checkboxes (for legal agreements, etc.).
Added requireRadio function, used
internally by form checkers to ensure a radio button in the given
group is checked.
Added requireLength function for
establishing a minimum and/or maximum field length.
Added allowChars function for
providing a list of acceptable characters for a field.
Added disallowChars function for
providing a list of unacceptable characters for a field.
Added checkEmail function for simple
email validation.
Added radio button checker; all form checking functions now require a radio button in each group to be checked.
Password fields may now be autochecked.
Added checkClass function for
class-checking individual elements.
Improved autocheck
compatibility.
Improved fixTime and fixSSN compatibility (Netscape 4.x).
Removed defaultAreaCode global
variable in favor of a new (optional) fixPhone parameter.
Initial release.