0

Question about hiding <div> elements

Hi guys! How can I make it possible to open only one "id" element at a time? For example: I open <div id = "a1"> Then I open <div id = "b1"> at this point <div id = "a1"> must be closed automatically. How to do this? Thank you. https://code.sololearn.com/WPfC7s5iV45i/?ref=app

27th Sep 2018, 6:18 PM
Sergei Isáichenko
Sergei Isáichenko - avatar
4 Réponses
+ 2
You're very welcome. 🙂
27th Sep 2018, 8:05 PM
Janning⭐
Janning⭐ - avatar
+ 1
Janning, Thank you so much;)
27th Sep 2018, 6:42 PM
Sergei Isáichenko
Sergei Isáichenko - avatar
0
Another way to do this. Explanations in Russian, but the code in English, of course: https://webcareer.ru/pereklyuchatel-vkladok-na-jquery.html#comment-613
29th Sep 2018, 4:17 PM
Sergei Isáichenko
Sergei Isáichenko - avatar