I want to validate my form using jquery but it doesn’t have an ID property as of now how to add it to the form in asp.net mvc? I am using this…
<% using (Html.BeginForm()) {%>
and my jquery validator plugin takes this,
var validator = $("#signupform").validate({
Now i want to give id as signupform… Any suggestion…
This should get the id added.
ASP.NET MVC 5 and lower:
ASP.NET Core: You can use tag helpers in forms to avoid the odd syntax for setting the id.