title: Get Value of Disabled Option in Select Multiple Jquery
body: <p>I have a multiple select on my page, and I have an option disabled so that the user can't unselect them, but I can't work out how to get the value of the disabled option.</p>
  
  <p>My code so far</p>
  
  <pre><code>// Get selected positions
  var $selPositions = $('select#empPositions').val();
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;select name="empPositions[]" id="empPositions" style="width: 370px;" multiple="" data-placeholder="Choose a Position" required=""&gt;
  &lt;option&gt;&lt;/option&gt;
  &lt;optgroup label="Admin"&gt;
      &lt;option disabled=""&gt;There are no positions assigned to Admin&lt;/option&gt;
  &lt;/optgroup&gt;
  &lt;optgroup label="Information Technology"&gt;
      &lt;option value="1" selected="" disabled=""&gt;IT Developer&lt;/option&gt;
      &lt;option value="2"&gt;IT Geeks&lt;/option&gt;
  &lt;/optgroup&gt;
  </code></pre>
  
  <p></p>
  
  <p>Note the disabled option changes based on other variables, but it only gives me selected non-disabled values. Can anyone let me know if this can be done and how?</p>
  
  <p>I'm using <a href="http://harvesthq.github.io/chosen/" rel="noreferrer">Chosen</a>, hence why the <code>disabled</code> option</p>
  
  <p><strong>Fiddle:</strong> <a href="http://jsfiddle.net/c5kn5w75/" rel="noreferrer">http://jsfiddle.net/c5kn5w75/</a></p>
  
  <p>I did find <a href="http://bugs.jquery.com/ticket/13097" rel="noreferrer">this article</a> on the JQuery Bug Site which said</p>
  
  <blockquote>
    <p>The long-standing logic in .val() ensures that we don't return disabled options in a select-multiple. The change just applies the same behavior for select-one now for consistency. You can get to the disabled option value through $("select").prop("selectedIndex") if you need it.</p>
  </blockquote>
  
  <p>But that didn't work for me.</p>