1.10.4.Implementing Client-side Validation
1.Add @Scripts.Render("~/bundles/jqueryval") to New.cshtml
2.Customerize validator
3.Move submit function in $("#newRental").validate({ submitHandler: function () {}});
4.Modify input property
5.Clear input and viewModel after submitting
Last updated