KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
<select id="sel"> <option value="123" selected="selected">text1</option> <option value="44">text2</option> <option value="882">text3</option> ... </select> How to get the index of selected option with jQuery? May be .index(subject) , but all possibilities tested, didn't work... P.S. Indexes: value="123" => 0, value="44" => 1, ... Thanx
Tags (comma-separated)
Save Edits
Cancel