I have a row with three columns and a button. When I click on a button, the second column hides and the third one takes it place. How can I force the third column to remain on the same position where it was before hiding the second one? Here is my code:
<div class="row">
<div class="col-3">
Column 1
</div>
<div class="col-3 test">
Column 2
</div>
<div class="col-3">
Column 3
</div>
</div>
<button id="btn">
Hide column 3
</button>
$('#btn').click(function(){
$('.test').hide();
});