title: .Net MVC 5.2.3: how to create a disabled option out of SelectListItem?
body: <p>I am trying to create a dropdown  list with a few options disabled so that they are not selectable. Here is my code:</p>
  
  <pre><code>var places = new SelectList(new List&lt;SelectListItem&gt;
  {
      new SelectListItem { Selected = false, Text = "Virgin Islands", Value = "Virgin Islands"},
      new SelectListItem { Selected = false, Text = "", Value = "", Disabled= true},
      new SelectListItem { Selected = false, Text = "Canada", Value = "Canada", Disabled= true},
      new SelectListItem { Selected = false, Text = "", Value = "", Disabled= true},
      new SelectListItem { Selected = false, Text = "Other", Value = "Other"},
  }, "Value", "Text");
  </code></pre>
  
  <p>However, generated HTML for the disabled SelectListItem is merely:</p>
  
  <pre><code>&lt;option value=""&gt;&lt;/option&gt;
  </code></pre>
  
  <p>How can I generate the following HTML</p>
  
  <pre><code>&lt;option disabled="disabled"&gt;&lt;/option&gt;
  </code></pre>
  
  <p>from SelectListItem?</p>
  
  <p>Thanks!</p>