Hello! There are 4 photos on the page, there are 4 paragraphs for each photo. Here you need to make the paragraphs appear, depending on the click on the photo.
<a href="#about_1"><img id="author_1" src="{$template}/img/photo/1_.jpg"/></a> <a href="#about_2"><img id="author_2" src="{$template}/img/photo/2_.jpg"/></a> <a href="#about_3"><img id="author_3" src="{$template}/img/photo/3_.jpg"/></a> <a href="#about_4"><img id="author_4" src="{$template}/img/photo/4_.jpg" style="float: none;"/></a> <p id="about_1">Раз раз раз</p> <p id="about_2">Два два два</p> <p id="about_3">Три три три</p> <p id="about_4">Четыре четыре четыре</p>
Those. If one block is open, when clicking on a photo that belongs to another block, the “first” block should collapse. It should also be minimized when clicking on a photo that relates to this block.
I suppose you need to use slideToggle. But something like that I can not achieve the desired result. Tell me the right decision please :)