title: Disabling a Dropdown list item jquery not working
body: <p>I want to disable the dropdown list item using jquery.
  The index value is -1 and the value is  ------- Internal -------. I tried below syntaxes one by one(The solutions were the answers for similar questions). None of them are working.  Iam using IE8. </p>
  
  <pre><code>var value="------- Internal -------";
  $("[id*='ChildOrganizationDropDownList'] option[value=" + value + "]").prop('disabled','disabled'); 
  $("#ChildOrganizationDropDownList option[value=" + value + "]").prop('disabled','disabled');    
  $("[id*='ChildOrganizationDropDownList']").option('------- Internal -------').prop('disabled',true);    
  $("id*='ChildOrganizationDropDownList' option[value='------- Internal -------']").prop('disabled','disabled');    
  $("[id*='ChildOrganizationDropDownList']").option("[value*='------- Internal -------']").prop('disabled', true);
  $("[id*='ChildOrganizationDropDownList']").attr("disabled",$(_this.CustomerNameDropDownList).find("option[value='------- Internal -------']"));
  </code></pre>
  
  <p>Designer : Aspx</p>
  
  <pre><code>&lt;div class="selectionControls"&gt;
    &lt;asp:CheckBox ID="chkSubcontracting" runat="server" Text="Subcontracting" Enabled="true" /&gt;
    &lt;asp:HiddenField ID="SubcontractingHiddenField" runat="server" /&gt;
    &lt;div class="subSelectionControl" id="AllowSubcotractingSelection" style="display: none;"&gt;
      &lt;div class="subContractingControls"&gt;
        Parent BU:
        &lt;span&gt;
          &lt;div class="subContractingControls"&gt;
            Supplier &lt;em class="mandatoryIndicator"&gt;*&lt;/em&gt;:
            &lt;span&gt;
              &lt;asp:DropDownList ID="ChildOrganizationDropDownList" runat="server" Width="200px" /&gt;
              &lt;asp:HiddenField ID="IxChildOrganizationHiddenField" runat="server" /&gt;
            &lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>Aspx.cs</p>
  
  <pre><code>public Dictionary&lt;int, string&gt; ChildOrganizations
          {
              set
              {
                  var result = value;
                  result.Add(0, "Select Supplier");
                  ChildOrganizationDropDownList.DataSource = result;
                  ChildOrganizationDropDownList.DataTextField = "value";
                  ChildOrganizationDropDownList.DataValueField = "key";
                  ChildOrganizationDropDownList.DataBind();
                  ChildOrganizationDropDownList.SelectedValue = "0";
  
  
              }
          }
  </code></pre>