title: jQuery refactor help needed. Pass an array as a param?
body: <p>Hi I have this js that I'd like to refactor:</p>
  
  <pre><code>
  if (jQuery("#monOffHrsFrm").val() != '' && jQuery("#monOffHrsTo").val() != '') {
      jQuery("#monOffHrsFrm, #monOffHrsTo").removeClass("validationError");
  }
  if (jQuery("#tueOffHrsFrm").val() != '' && jQuery("#tueOffHrsTo").val() != '') {
      jQuery("#tueOffHrsFrm, #tueOffHrsTo").removeClass("validationError");
  }
  if (jQuery("#wedOffHrsFrm").val() != '' && jQuery("#wedOffHrsTo").val() != '') {
      jQuery("#wedOffHrsFrm, #wedOffHrsTo").removeClass("validationError");
  }
  if (jQuery("#thuOffHrsFrm").val() != '' && jQuery("#thuOffHrsTo").val() != '') {
      jQuery("#thuOffHrsFrm, #thuOffHrsTo").removeClass("validationError");
  }
  if (jQuery("#friOffHrsFrm").val() != '' && jQuery("#friOffHrsTo").val() != '') {
      jQuery("#friOffHrsFrm, #friOffHrsTo").removeClass("validationError");
  }
  if (jQuery("#satOffHrsFrm").val() != '' && jQuery("#satOffHrsTo").val() != '') {
      jQuery("#satOffHrsFrm, #satOffHrsTo").removeClass("validationError");
  }
  if (jQuery("#sunOffHrsFrm").val() != '' && jQuery("#sunOffHrsTo").val() != '') {
      jQuery("#sunOffHrsFrm, #sunOffHrsTo").removeClass("validationError");
  }
  </code></pre>
  
  <p>How can I pass a [mon, tue, wed, thur, fri, sat, sun] array and take care of this with a few lines?  </p>
  
  <p>Thanks</p>