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.
下载代码
说明
X关闭
jquery高级注册表单验证
三种不同风格的表单验证表单,可以有效验证字符串,数字,日期或e-mail,例如:所需的数字输入和至少5个字符长度等。