jQuery div content partial hide, show all

后端 未结 2 1916
小蘑菇
小蘑菇 2020-12-10 21:23

I have this solution I am trying to use but it uses ID\'s. I want multiple divs on the same page using the same classes. I changed the ID references to classes but I can n

2条回答
  •  青春惊慌失措
    2020-12-10 21:50

    You can use ":first" selector, then remove the class from that object, then call again. Or if you don't want to remove a class, add a class and use the ":first" and ":not" selectors

提交回复
热议问题