如何使用validationengine JS在MVC中为我的表单添加验证 [英] How to add validate to my form in MVC using validationengine JS

查看:92
本文介绍了如何使用validationengine JS在MVC中为我的表单添加验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在MVC中使用validationEngine JS为我的表单添加一些验证

但它不起作用

help please



我尝试过:



i将validationEngine.JS文件置于我的视图之上

并且写了

输入class =form-control validate [custom [email]]id =emailtype =text/

i want add some validates to my form in MVC using validationEngine JS
but it not work
help please

What I have tried:

i put validationEngine.JS file in top of my view
and write
input class="form-control validate[custom[email]] " id="email" type="text"/

推荐答案

由于您没有提供任何代码或您尝试过的任何示例,我建议您查看下面的github链接。



< a href =https://github.com/posabsolute/jQuery-Validation-Engine> GitHub - posabsolute / jQuery-Validation-Engine:jQuery表单验证插件 [ ^ ]



文档部分link提供了关于如何使用验证引擎插件的使用/实例化说明。



http://posabsolute.github.io/jQuery-Validation-Engine/ [ ^ ]



你可以另请查看插件本身的文档,以确保您了解它正在做什么,或者帮助您提出更好的问题,以便人们更适合帮助您。



另一个建议是查看插件作者从他们的github页面提供的演示。



JQuery验证引擎 [ ^ ]



通过演示,您可以查看源代码并完全按照您的视图进行复制,以使其正常工作在你的应用程序中。
Since you've provided no code or any samples of what you've tried, I would suggest you take a look at the github link below.

GitHub - posabsolute/jQuery-Validation-Engine: jQuery form validation plugin[^]

The documentation portion of that link provides usage/instantiation instructions on how to go about using the validation engine plugin.

http://posabsolute.github.io/jQuery-Validation-Engine/[^]

You can also take a look at the documentation for the plugin itself to make sure you understand what it is you are doing, or to help you ask better questions so that people are better suited to help you.

One other suggestion is to look at the demos the plugin author provides from their github page.

JQuery Validation Engine[^]

With the demos, you can view the source and copy it exactly as you see there in order to get it working in your app.


这篇关于如何使用validationengine JS在MVC中为我的表单添加验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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