search

Home  >  Q&A  >  body text

javascript - How to achieve multiple tab switching on the same page?

I have been working on a website for the past two days. There are many tab switching effects on the same page. I have tried ul>li and input[type=radio], but the effect is not good and can only be used once. Problems may arise after repeated use. Excuse me, is there anyone who can provide information on this? Thank you so much!

I'm so worried! ! !

我想大声告诉你我想大声告诉你2771 days ago728

reply all(2)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-06-12 09:25:46

    Maybe you need this

    http://v3.bootcss.com/javascr...

    reply
    0
  • 迷茫

    迷茫2017-06-12 09:25:46

    You can use plugins. Let me talk about the principle. In fact, you have to treat this function as an object, then put the interaction into the object, and new a new object each time, so as to ensure its uniqueness.
    I will introduce my own method: https://jsfiddle.net/8965vvz5/1/

    reply
    0
  • Cancelreply