sudheen

sudheen

  • 1.4k
  • 313
  • 83.6k

disable client side validation in asp.net mvc razor view

Jul 22 2015 7:44 AM
hi guys,
 
 
How to disable client side validation for individual controls for  razor view  in asp.net mvc
 
 
Eg:Textbox, dropdownlist
 
this code i tried not working..
 
/disabling client side validation for textbox in asp.net mvc.
//$("#txtspCode").removeAttr("data-val-Required");
//$("#txtspdesign").removeAttr("data-val-Required");
 

Answers (2)