What is the best field validation plugin for Prototype?

牧云@^-^@ 提交于 2020-01-14 06:09:05

问题


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?


回答1:


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.




回答2:


I like wforms. Example:

<input type="text" name="myDate" class="validate-date"/>



回答3:


JSValidate



来源:https://stackoverflow.com/questions/265541/what-is-the-best-field-validation-plugin-for-prototype

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!