jQuery 遍歷具有相同類的元素 - jQuery to loop through elements with the same class

問題:

I have a load of divs with the class testimonial and I want to use jquery to loop through them to check for each div if a specific condition is true.我有很多帶有類testimonial的 div,我想使用 jquery 循環遍歷它們以檢查每個 div 是否滿足特定條件。 If it is true, it should perform an action.如果是真的,它應該執行一個動作。

Does anyone know how I would do this?有誰知道我會怎麼做?


解決方案:

參考一: https://en.stackoom.com/question/JrsU
參考二: https://stackoom.com/question/JrsU
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章