title: Enable / Disabled button not working in javascript
body: <p>Is there any reason why code below is not working for <code>enable/disable</code> a html button?. The function is called when a dropdown is change. As you can see I test 3 different codes. BTW I am using <code>jquery 1.5.1</code></p>
  
  <pre><code>function EnableDisableBrowseDocs() {
      var x = $("#DocumentClassificationId").val();
      var Document201Id = $("#Document201Id").val();
      var curAction = $("#hidCurAction").val();
      if (x &gt; 0 &amp;&amp; Document201Id &gt; 0 &amp;&amp; curAction == "EditProfile") {
          //$("#btnUpload201Doc").attr("disabled", false);
          //document.getElementById("btnUpload201Doc").disabled = false;
          $("#btnUpload201Doc").removeAttr('disabled');
      }
      else {
          $('#btnUpload201Doc').attr('disabled', 'disabled');
          //$("#btnUpload201Doc").attr("disabled", true);
          //document.getElementById("btnUpload201Doc").disabled = true;
      }
  }
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code> &lt;input id="btnUpload201Doc" type="file" disabled="disabled" style="width: 0px; display:none" /&gt;
  </code></pre>