How do you swap DIVs on mouseover (jQuery)?

后端 未结 5 1134
天涯浪人
天涯浪人 2020-12-03 14:05

This most be the second most simple rollover effect, still I don\'t find any simple solution.

Wanted: I have a list of items and a corresponding lis

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-03 14:35

    The only thing that's wrong with this code (at least to me) is that you're not using a loop to process all elements. Other than that, why not to it like that?

    And with loop, I mean grabbing the container element via a JQuery and iterating over all child elements – basically a one-liner.

提交回复
热议问题