making sure element/selector is an select <option>

making sure element/selector is an select <option>

hey guys i have a select box that looks like this for exaple:

  1. <select id="game">
  2. <option id="mario">Mario</option>
  3. <option id="SuperMario">Super Mario</option>
  4. <option id="MarioKart">Mario Kart</option>
  5. </select>
and what i want to do is when selecting #SuperMario i want to find out if its and option

like when checking #game is a select box but how to check if select/element is actually an option

  1. if (#game.att(''type) == 'select-one')
  2. {
  3.  // code
  4. }
if anyone could help me with the right code on how to do this i would be very greatful...thank you