title: How can I get the value of the label attribute in an option element?
body: <p>I'm trying to get not just the value of the option element, but the value of the label attribute as well. Any ideas on how to do it? I'm currently using this (inline) to get the option's value:</p>
  
  <pre><code>$('select :selected').html();
  </code></pre>
  
  <p>My select would look something like this:</p>
  
  <pre><code>&lt;select&gt;
  &lt;option value="John Smith" label="JS"&gt;John Smith&lt;/option
  &lt;/select&gt;
  </code></pre>
  
  <p>Any ideas? I've been looking for the last half-hour or so and some solutions have come close, but I can't find anyone who is looking for the value of the label.</p>
  
  <p>Here's one that I thought would answer my question, but I think they were after something slightly different. - <a href="https://stackoverflow.com/questions/2175737/how-to-get-label-of-select-option-with-jquery">How to get label of select option with jQuery?</a></p>
  
  <p>Thanks in advance!</p>