title: get class name of a selected option
body: <p>I have a select tag which pretty much looks like this</p>
  
  <pre><code>&lt;select name="platform"&gt;
      &lt;option class="one-test-one"&gt;one&lt;/option&gt;
      &lt;option class="two-test-two"&gt;two&lt;/option&gt;
      &lt;option class="three-test-three"&gt;three&lt;/option&gt;
  &lt;/select&gt;
  &lt;div class="clickMe"&gt;click&lt;/div&gt;
  </code></pre>
  
  <p>I am trying to get the class attribute value of the the selected option. This is what I am doing in jquery</p>
  
  <pre><code>$('.clickMe').on('click', function() {
      alert($('select[name="platform"]:selected').attr('class')); 
  });
  </code></pre>
  
  <p>the alert is returning undefined ..what am i doing wrong?</p>