Answer the question
In order to leave comments, you need to log in
How to hide an open block when opening a new one?
Hello,
Tell me who knows.
Bootstrap 3.
Additional information of the block opens when you click on the button.
Each block has its own accordion.
How do I close the old one when I open a new one.
Thank you!
Answer the question
In order to leave comments, you need to log in
$(document).ready(function(){
$('#bank').hide(); // по умолчанию скрыт
$('#rating-bank').click(function() { // по клику открывается блок с id bank и закрывается с id micro
$('#micro-zaim').hide();
$('#bank').show();
});
$('#rating-micro').click(function() {
$('#bank').hide();
$('#micro-zaim').show();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question