title: Disable/Enable TextBox not working
body: <p>I have a group of <code>RadioButton</code> which will set off an <code>onclick</code> event.  The <code>pageLoad</code> and <code>onclick</code> event (<code>SecurityCheckedChanged</code>) work because the other <code>show</code>/<code>hide</code> JavaScript code works.  I've commented it out to give a minimal example.  However, setting disable <code>true</code>/<code>false</code> in <code>SecurityCheckedChanged</code> doesn't seem to work (it does work in <code>pageLoad</code> though).  Is what I'm doing correct or is there another way to enable/disable a <code>TextBox</code>?</p>
  
  <p>JavaScript:</p>
  
  <pre><code>function pageLoad(sender, args) {
      $("#&lt;%= textBoxPassword.ClientID %&gt;").attr("disabled", true);
      //more show/hide code
  }
  
  function SecurityCheckedChanged() {
      if ($("#&lt;%= radWEP.ClientID %&gt;").is(':checked')) {
          $("#&lt;%= textBoxPassword.ClientID %&gt;").attr("disabled", false);
          //more show/hide code
      }
      else if ($("#&lt;%= radWPA.ClientID %&gt;").is(':checked') || $("#&lt;%= radWPA2.ClientID %&gt;").is(':checked')) {
          $("#&lt;%= textBoxPassword.ClientID %&gt;").attr("disabled", false);
          //more show/hide code
      }
      else {
          $("#&lt;%= textBoxPassword.ClientID %&gt;").attr("disabled", true);
          //more show/hide code
      }
  }
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div style="text-align: left;"&gt;
      &lt;asp:Localize ID="locPassword" runat="server" Text="Password:" meta:resourcekey="locPasswordRc1" /&gt;
      &lt;asp:TextBox ID="textBoxPassword" TextMode="Password" runat="server"&gt;&lt;/asp:TextBox&gt;
  &lt;/div&gt;
  
  
  &lt;div style="text-align: left;"&gt;
      &lt;asp:RadioButton id="radNone" Text="None" Checked="True" meta:resourcekey="radNoneRc1"
          GroupName="RadioGroupSecurity" runat="server" onclick="SecurityCheckedChanged()"/&gt;
  
      &lt;asp:RadioButton id="radWEP" Text="WEP" Checked="False" meta:resourcekey="radWepRc1"
          GroupName="RadioGroupSecurity" runat="server" onclick="SecurityCheckedChanged()"/&gt;
  
      &lt;asp:RadioButton id="radWPA" Text="WPA" Checked="False" meta:resourcekey="radWpaRc1"
          GroupName="RadioGroupSecurity" runat="server" onclick="SecurityCheckedChanged()"/&gt;
  
      &lt;asp:RadioButton id="radWPA2" Text="WPA2" Checked="False" meta:resourcekey="radWpa2Rc1"
          GroupName="RadioGroupSecurity" runat="server" onclick="SecurityCheckedChanged()"/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>NOTE:  Also, I understand I shouldn't intermix C# code here.  I'll get to cleaning that up a bit later.</p>