简体   繁体   English

MVC中没有数据注释的Jquery验证

[英]Jquery Validation WITHOUT Data Annotation in MVC

I want to create a page, in MVC, where there is a label, a textbox and a save link. 我想在MVC中创建一个页面,其中有一个标签,一个文本框和一个保存链接。 Textbox will be initially in read mode and on double click of the textbox it is gonna come in edit mode. 文本框最初将处于读取模式,双击该文本框将进入编辑模式。 And when we fill textbox and click save link it gets saved in db. 当我们填充文本框并单击“保存”链接时,它将保存在数据库中。 And for the text box, it should have various validations. 对于文本框,它应该具有各种验证。 For these validations, I am planning not to use data annotations and work all with jquery or ajax. 对于这些验证,我计划不使用数据注释,而是全部使用jquery或ajax。 Also, I dont want to post the entire form, just the part where there is an edit. 另外,我不想发布整个表单,仅发布其中有编辑的部分。 Is this possible? 这可能吗? If possible, then Please, can someone provide me some links or some help regarding this. 如果可能的话,请给我提供一些链接或帮助。 Thanks in advance. 提前致谢。

您可以 ..中使用JQuery Validation插件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM