Really Simple Validation (RSV) 介绍
This small but powerful script lets you add javascript validation to your
forms quickly and with very little effort. No programming experience is
necessary, but it’s fully extensible to allow programmers to augment the
built-in validation rules with their own.
RSV comes in three flavours: as a standalone script, as a jQuery plugin and as
a Prototype extension. All of the versions offer the same functionality, but
I’ve separated the documentation and examples into sections to keep things
clear. If you’re unfamiliar with jQuery or Prototype you’ll probably want to
use the standalone script.
The script offers all the common validation routines offered by other
validation scripts, but more importantly it supports “fringe” cases very well,
with features such as:
- It allows you to apply multiple validation rules to the same field
- Allows for simple conditional logic (if field A == something, validation fields B, C and D)
- You can make up your own validation rules
- you can display the errors in literally any way you want, with 3 built-in standard ways to present them and the option to pass the errors to a custom error handler
- Lets you pass off control flow to your own onCompleteHandler function
- there’s a PHP sister script available. You can literally copy & paste your validation rules to a PHP file to get server-side validation.
Really Simple Validation (RSV) 官网
http://plugins.jquery.com/project/RSV
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。