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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章