Prototype最好的现场验证插件是什么? [英] What is the best field validation plugin for Prototype?

查看:156
本文介绍了Prototype最好的现场验证插件是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不想重新发明轮子或任何东西,我想知道是否有插件可以使用Prototype的字段或表单验证插件,您可以根据自己的经验推荐它,为什么?

解决方案

我喜欢Ben Keen的真正简单验证组件。



我喜欢的功能:

所有验证规则都可以保存在JavaScript中,因此您不需要添加类=requiredto your HTML code。



您可以在JavaScript警告框或HTML文本中显示错误消息。



添加自己的扩展程序很简单。



http://www.benjaminkeen.com/software/rsv/



请注意,我只使用了jQuery版本,但使用了Prototype版本也是可用的。


Not wanting to re-invent the wheel or anything, I was wondering if there's a plugin out there a field or form validation plugin that works with Prototype that you can recommend from your own experience and why?

解决方案

I like Ben Keen's Really Simple Validation component.

Features I like:

All the validation rules can be kept within javascript so you're not adding class="required" to your HTML code.

You can display error messages in a javascript alert box or with HTML text.

Adding your own extensions is easy.

http://www.benjaminkeen.com/software/rsv/

Note that I've only used the jQuery version, but a Prototype version is also available.

这篇关于Prototype最好的现场验证插件是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆