Targeting $(this) within nested for each loops in jQuery

后端 未结 5 1633
执念已碎
执念已碎 2020-12-02 12:29

I\'m trying to figure out, when iterating through some list items, how to target each \"$(this)\" equivalent within nested foreach loops. Here is an example of my problem:

5条回答
  •  [愿得一人]
    2020-12-02 13:00

    but how can I target each of these li items? Doesn't $(this) target the original loop?

    Nope.

    this comes from the function you're directly in.

提交回复
热议问题