I'm using the new Bootstrap 4 and I need to create a DIV before a bootstrap column in order to hide or show the columns when a button is pressed.
So what I need is something like this:
<div class="container">
<div class="row">
<div class="menu-page" data-page="1">
<div class="col-lg-6" style="background-color: red; height: 200px;">
</div>
<div class="col-lg-6" style="background-color: yellow; height: 200px;">
</div>
</div>
<div class="menu-page" data-page="2">
<div class="col-lg-6" style="background-color: red; height: 200px;">
</div>
<div class="col-lg-6" style="background-color: yellow; height: 200px;">
</div>
</div>
</div>
</div>
But when I create this, the col-lg-6 divs lose all the bootstrap properties.
I need this to when a button is pressed it shows, using javascript, the div with the data-page associated to that button and hides the others.
How can I create this? Or there is a more simple way to do this?