I am currently working with a layout featuring three columns that utilizes bootstrap. However, I have encountered an issue where clicking on one column results in the expansion of the adjacent columns as well. Unfortunately, I am unable to display the snippet code here, so I have provided an image showcasing the problem: https://i.sstatic.net/1aE2Q.png
I am seeking guidance on how to alter this behavior. My goal is to click on a single column and have only that specific column expand without affecting the others. Any suggestions on how I can achieve this?
$('li.submenu a[href="#"]').click(
function(e) {
e.preventDefault();
$(this).toggleClass('open');
$(this).next().toggle();
$('.col-md-4').toggleClass('flex-last');
return false;
});
ul.ul_submenu {
display: none;
}
.submenu a i {
transition: ease .3s;
}
.submenu a.open i {
transform: rotate(-90deg);
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="container-fluid">
<div class="row">
// Column 1 content...
// Column 2 content...
// Column 3 content...
// Additional columns...
</div>
</div>😉