资 源 简 介
wvActiveForm is a CActiveForm descendant that validates the input on client
with jQuery, using the rules defined at the model, while also supporting custom
rules. Besides validation some rules may also filter invalid characters
during typing.
Validators:
Required
Number
String (length)
Email
Default value (displays value that disappear on field click)
No whitespace
URL
Manual rules
Rules:
jQuery.Validate
jQuery.Numeric
jQuery.DefaultValue
jQuery.keyFilter
CValidator supported:
CRequiredValidator
CStringValidator
CNumberValidator
CEmailValidator
CUrlValidator
Usage
Just replace the CActiveForm class with wvActiveForm, and you should automatically
get client validation if you use validators on your model.
For example:
文 件 列 表
wvactiveform
assets
changelog.txt
layouts
license.txt
readme.txt
rules
validators
wvActiveForm.php
wvFormLayout.php
wvFormRule.php
wvFormRules.php
wvFormValidator.php