How to find select option position?

后端 未结 0 1502
感动是毒
感动是毒 2021-02-15 03:41

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


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