title: enable/disable asp:dropdownlist using jquery not working
body: <p>Why this code isn't working:</p>
  
  <p><strong>jquery:</strong></p>
  
  <pre><code>     $("input[id$='rbtlDestination']").change(function(){
              if ($(this).val() == "To Subsidiary:")
                  $("input[id$='ddlSubsidiaries']").removeAttr('disabled');
              else
                  $("input[id$='ddlSubsidiaries']").attr('disabled', 'disabled');
       });
  </code></pre>
  
  <p><strong>html:</strong></p>
  
  <pre><code>    &lt;asp:RadioButtonList ID="rbtlDestination" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="FormatRadioButtonListItems"&gt;
                  &lt;asp:ListItem Selected="True" Value="To Work"&gt;To Work&lt;/asp:ListItem&gt;
                  &lt;asp:ListItem Value="To Subsidiary:"&gt;To Subsidiary:&lt;/asp:ListItem&gt;
      &lt;/asp:RadioButtonList&gt;
  
      &lt;asp:DropDownList ID="ddlSubsidiaries" runat="server" Width="160px" Enabled="false" 
                      DataSourceID="odsSubsidiaries" DataTextField="Subsidiary" 
                      DataValueField="IdSubsidiary"&gt;
      &lt;/asp:DropDownList&gt;
  </code></pre>
  
  <p><strong>Rendered:</strong></p>
  
  <pre><code>&lt;span id="ctl00_ContentPlaceHolder1_rbtlDestination" class="FormatRadioButtonListItems"&gt;
  &lt;input id="ctl00_ContentPlaceHolder1_rbtlDestination_0" type="radio" name="ctl00$ContentPlaceHolder1$rbtlDestination" value="To Work" checked="checked" /&gt;
  &lt;label for="ctl00_ContentPlaceHolder1_rbtlDestination_0"&gt;To Work&lt;/label&gt;
  &lt;input id="ctl00_ContentPlaceHolder1_rbtlDestination_1" type="radio" name="ctl00$ContentPlaceHolder1$rbtlDestination" value="To Subsidiary:" /&gt;
  &lt;label for="ctl00_ContentPlaceHolder1_rbtlDestination_1"&gt;To Subsidiary:&lt;/label&gt;&lt;/span&gt;
  
  
  &lt;select name="ctl00$ContentPlaceHolder1$ddlSubsidiaries" id="ctl00_ContentPlaceHolder1_ddlSubsidiaries" disabled="disabled" style="width:160px;"&gt;
  &lt;option selected="selected" value="2"&gt;Sub A&lt;/option&gt;
  &lt;option value="1"&gt;Sub B&lt;/option&gt;
  </code></pre>
  
  <p></p>