Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

mvc 5 required field validation not working

//1. Get JQuery validation scripts via NuGet
PM> install-package Microsot.JQuery.Unobtrusive.Validation
//2. Add .js reference to master page (_Layout.cshtml)
<script src="/Scripts/jquery.validate.js"></script>
<script src="/Scripts/jquery.validate.unobtrusive.js"></script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mvc #required #field #validation #working
ADD COMMENT
Topic
Name
6+8 =