dropdown - get index of item with specific attribut
hi
- <select id="myselect">
- <option value="a">test</option>
- <option value="b">test</option>
- <option value="c">test</option>
- </select>
i need to somehow get the index of the item with value "c" (so it will return 2). how to do so? thanks