title: Disabled attribute not properly setting in IE using JavaScript
body: <p>I believe this is only my second post, so here it goes.
  I'm working on an HTML form that manages credit cards. The form has a javascript page that does all the validation and such for it when submitted. 
  The zip code field on the Form has an onblur action that queries a database for the zip code to populate the city/country fields. In the database, there can be more than one location set up for a zip code, in which a floating div appears to let the user select which address they would like to use.</p>
  
  <p>When it's run, it first disables all the fields on the form with this function piece:</p>
  
  <pre><code>for(f=0;f&lt;document.forms.length;f++)
  {
      for(i=0;i&lt;document.forms[f].elements.length;i++)
      {
         if (document.forms[f].elements[i].disabled==true)
            keepDisabled += document.forms[f].name + document.forms[f].elements[i].name + "^";
  
         document.forms[f].elements[i].disabled=true;
      }
   }
  </code></pre>
  
  <p>Then when the user selects an address, it enables all the fields with this piece:</p>
  
  <pre><code>for(f=0;f&lt;document.forms.length;f++)
  {
      for(i=0;i&lt;document.forms[f].elements.length;i++)
      {
         if (keepDisabled.indexOf("^"+document.forms[f].name+document.forms[f].elements[i].name+"^") == -1)
            document.forms[f].elements[i].disbaled=true;
      }
  }
  </code></pre>
  
  <p>So the disabled = true should be skipped over for any elements in the keepDisabled variable. The odd thing is that it works fine in FireFox/Chrome, but in IE, it sorta half-enables the fields. The disables fields lose the grey-out, the input/text field can't be edited, which is still good, and the select only activates on a double click.</p>
  
  <p>I've also tried using these disabling codes:</p>
  
  <pre><code>document.forms[f].elements[i].prop("disabled", "disabled");
  document.forms[f].elements[i].attribute("disabled, "disabled");
  </code></pre>
  
  <p>Any suggestions? Thanks.</p>