How to find select option position?

后端 未结 0 1105
时光说笑
时光说笑 2021-02-15 03:36

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()          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题