jQuery Chosen updates the html by making the original select hidden (style="Display:none"
). By default jquery.validate (1.9.0) ignores hidden elements. You can override the default using
$.validator.setDefaults({
ignore: []
});
or
$('form').validate({
ignore: []
});
More Related Contents:
- What is ModelState.IsValid valid for in ASP.NET MVC in NerdDinner?
- ASP.NET MVC 3 client-side validation with parameters
- Allow User to input HTML in ASP.NET MVC – ValidateInput or AllowHtml
- attribute dependent on another field
- How to change ‘data-val-number’ message validation in MVC while it is generated by @Html helper
- Fill drop down list on selection of another drop down list [closed]
- Validate object based on external factors (ie. data store uniqueness)
- Remote Validation in ASP.Net MVC 3: How to use AdditionalFields in Action Method
- ASP.NET MVC – Custom validation message for value types
- What is the best ways to bind @Html.DropDownListFor in ASP.NET MVC5?
- Required Attribute on Generic List Property
- maxlength attribute of a text box from the DataAnnotations StringLength in Asp.Net MVC
- MVC DropDownList SelectedValue not displaying correctly
- Disable client-side validation in MVC 3 “cancel” submit button
- Load PartialView with using jquery Ajax?
- Dots in URL causes 404 with ASP.NET mvc and IIS
- How to extend available properties of User.Identity
- Visual Studio debugging/loading very slow
- Writing/outputting HTML strings unescaped
- Could not load file or assembly ‘System.Web.Mvc’
- Logging raw HTTP request/response in ASP.NET MVC & IIS7
- Troubleshooting anti-forgery token problems
- MVC controller : get JSON object from HTTP body?
- Do I need to install MVC 3/4 on web server to run mvc application
- DropDownListFor Not Selecting Value
- The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value
- ASP.NET WebApi vs MVC? [closed]
- Hiddenfor not getting correct value from view model
- Howto allow “Illegal characters in path”?
- Mapping Lists using Automapper