dynamically remove an element's required attribute in ASP MVC?
You can use the .rules()
method built into jQuery, you don't need to manually remove attributes.
To remove:
$("#txtTempHireEndDate").rules("remove", "required")
To add:
$("#txtTempHireEndDate").rules("add", "required")
you can use rules function in jquery.validate
$("..").rules("add",....)
$("..").rules("remove",...)
http://jqueryvalidation.org/rules