Sample Form 1
Required text & e-mail inputs
Fullname
Phone
E-mail
Message
Sample Form 2
Same fields required example
Username
Username (Again)
Password
Password (Again)
Sample Form 3
Custom error message & style
Date
Age
E-Mail
E-Mail (Again)
CSS Class Attributes
.req-string
: Field requires string (Use to force other css classes to be required on submit)
.req-email
: Field requires email
.req-min
: Field requires minimum X characters (Add minlength parameter to input field)
.req-numeric
: Field validates numeric
.req-date
: Field validates date (dd.mm.yyyy)
.req-both
: Checks all group fields has some value if one of them filled (group by "rel" attribute)
.req-same
: Checks all group fields has same value if one of them filled (group by "rel" attribute)
Version History
1.0.3
:
onError
parameter added.
1.0.2
: Some bug fixes have been done. Extra boolean parameter added.
1.0.1
: Initial version.