title: Remove disabled attribute from html dropdown and textbox
body: <p>I am running a c# webpage with html buttoms and am having trouble executing the javascript that enables the dropdown and textboxes. They are all predefined as disabled as well as a ssave button as hidden and on button click I call NewType() function and they should be visible and enabled on button click but its not working. The call for visibility none on the save button works but not for the drop down or textboxes.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  $(document).ready(function() {
      var d = document.getElementById('saveBtn').style.visibility = 'hidden';
  
  });  
  
      function NewType() {           
              var e = document.getElementById('saveBtn').style.visibility = 'visible';
  
              var x = document.getElementById('DD').removeAttribute('disabled');
  
              var a = document.getElementById('txt1').removeAttribute('disabled');
  
              var b = document.getElementById('txt2').removeAttribute('disabled');
  
              var c = document.getElementById('txt3').removeAttribute('disabled');                                                     
          };
  
  
   &lt;button type="button" onclick="NewType()"&gt;Add New&lt;/button&gt;
   &lt;button type="button" id="saveBtn"&gt;Save&lt;/button&gt;
  
  &lt;select ID="DD" runat="server" disabled="disabled"
                              height="30px" style="width: 120px"&gt;
                              &lt;option value=""&gt;&lt;/option&gt;
                              &lt;option value="1"&gt;fruit&lt;/option&gt;
                              &lt;option value="2"&gt;vegetables&lt;/option&gt;       
                                  &lt;option value="3"&gt;Other&lt;/option&gt;&lt;/select&gt;
     &lt;br /&gt;
                        &lt;input size="3" type="text" ID="txt1" runat="server" disabled="disabled" /&gt; 
                        &lt;input size="3" type="text" ID="txt2" runat="server" disabled="disabled"/&gt;
                        &lt;input size="4" type="text" ID="txt3" runat="server" disabled="disabled" /&gt;
  </code></pre>