Get the ID by Class name JQuery

前端 未结 8 1907
臣服心动
臣服心动 2021-02-05 19:00

Hi this is a jquery question:

supposed i have this:





        
8条回答
  •  北恋
    北恋 (楼主)
    2021-02-05 19:36

    Because you have not iterated all the elements which has class 'select'. It always goes to the first element and prints the result. Put a loop to iterate all elements having class 'select'.

提交回复
热议问题