問題:
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