This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17762|Reply: 0

[ASP.NET] MVC resolves the issue of invalidating forms added dynamically by jQuery Validation

[Copy link]
Posted on 11/19/2016 9:53:05 AM | | | |


Original link:

http://www.cnblogs.com/artech/archive/2012/11/25/reparse-form-4-validation.html

After running the program, click the Save button to submit the form, and the entered data will not be verified (client verification). To solve this problem, you can call $.validator.unobtrusive.parse() to reparse the form elements as follows after dynamically injecting the form.



My own view page:



The final generated html code:







Previous:C# Connecting to SQL Databases Common connection strings
Next:Could not determine type for: Decimal , for columns: NHibernate.Mapping.Colum...
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com