title: MVC how to disable the required validation for some controls
body: <p>I am creating a web application using MVC 4.</p>
  
  <p>I have a few properties in my view model that has been decorated with the required attribute as shown,</p>
  
  <pre><code>[Required(ErrorMessageResourceName = "StateRequiredMessage", ErrorMessageResourceType = typeof(Resources.Agency.CreateEdit))]
  public int? PostalAddressStateId { get; set; }
  </code></pre>
  
  <p>but then in my view, depending on what the user selects from a tick box, I disable some of the properties that have been tagged as required.</p>
  
  <p>I disable the controls using jQuery:</p>
  
  <pre><code>$("#PostalAddressStateId").attr("disabled", true);
  </code></pre>
  
  <p>Then when I try to save, it says the value is required. How do I solve this?</p>