jQuery fadeIn and fadeOut - swapping divs

后端 未结 6 1138
挽巷
挽巷 2021-01-25 19:33

I\'m new to jQuery and javascript in general but am plugging my way through thanks to sites like these.

I have a page with six hidden divs that are called with correspon

6条回答
  •  星月不相逢
    2021-01-25 20:11

    Lots of good solutions, I have a general comment:

    It seems a bit unnecessary for each panel to have a unique id. You might have a perfect reason to do so, but wouldn't it be enough to group your panels with a class selector? This would make your overall code, as well as your jquery, much simpler and easier to maintain.

提交回复
热议问题