The essence is this - there are 4 links and 4 hidden divas, conditionally:
<a href="#" id="link1"> Text </a> <a href="#" id="link2"> Text2 </a> <a href="#" id="link3"> Text3 </a> <a href="#" id="link4"> Text4 </a>
<div id = "div1" class = "bar"> </ div> <div id = "div2" class = "bar"> </ div> <div id = "div3" class = "bar"> </ div > <div id = "div4" class = "bar"> </ div>
The class is written display: none; How to make the corresponding div appear when you click on the link, but the rest remain hidden, and when you click on another link, another div opens and the previous div disappears? I've been trying to do something for a few days, nothing's working out.