making sure element/selector is an select <option>
hey guys i have a select box that looks like this for exaple:
- <select id="game">
- <option id="mario">Mario</option>
- <option id="SuperMario">Super Mario</option>
- <option id="MarioKart">Mario Kart</option>
- </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
- if (#game.att(''type) == 'select-one')
- {
- // code
- }
if anyone could help me with the right code on how to do this i would be very greatful...thank you