F
F
fregire2018-02-25 21:45:11
css
fregire, 2018-02-25 21:45:11

How to hide one block but open another?

There was a problem. How can I make it so that when you click on one block, a list appears (I know how to do this), but when you click on another, this text and the list hide and open the elements of the second block, and so on. You open one, the contents of the other are hidden. Help me please.
Here is an example of what I already did: https://jsfiddle.net/6sn6hry1/6/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Egor Zhivagin, 2018-02-25
@Krasnodar_etc

Google "accordion jquery", a bunch of examples will be

P
Paul Ivanov, 2018-02-26
@TaganPablo

https://jqueryui.com/tabs/ Also hides and shows blocks)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question