title: How to get the class name and the value from an option
body: <p>I'm having an optgroup that's created by 2 queries from 2 tables. These tables are crossreferenced. One parent and one child. Now in my optgroup i have the value which are filled by id's and the class names indicate which table it is. Now I want to read these values in a js.</p>
  
  <pre><code>&lt;option class="parent" value="1"&gt;&lt;/option&gt;
  &lt;option class="child" value="4"&gt;&lt;/option&gt;
  </code></pre>
  
  <p>Really hope someone can help me out.</p>