KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to find an option's index. For example, I would like to get 1 when I run the following fake code JS: $("#test[value='USD']").index() ? HTML: <select id='test'> <option value='CNY'>CNY</option> <option value='USD'>USD</option> </select> is this possible?
Tags (comma-separated)
Save Edits
Cancel