I have a webpage with two bootstrap rows and two buttons positioned at the top of the screen. I want to achieve a functionality where clicking the second button will bring the second row on top of the first row, and vice versa.
Here are my two rows:
<div class="row mothers_day-row mothers_day-row-share">
<div class="col-xs-12">
Text
</div>
</div>
<div class="row mothers_day-row mothers_day-row-create">
<div class="col-xs-12">
Text 2
</div>
</div>
Below is the code for my buttons:
<button class="regular mothers_day_first_button" id="mothers_day1">First row on top</button>
<button class="regular mothers_day_second_button" id="mothers_day2">Second row on top</button>