Can someone assist me in transforming my sidebar buttons into dropdowns when viewed on a responsive layout? I'm looking for something similar to the sidebar (on the left) featured on this website:
If possible, I would like the dropdown to only display the active button initially, and then reveal the other options when the active button is clicked. Similar to the functionality on the website mentioned above, but in my case, the buttons are toggled as active upon clicking, rather than loading a new page.
Below are the links that need to be converted:
<div class="buttonRow">
<ul class="btn">
<label for="drop" class="toggle">Active Link Here</label> ***only visible in dropdown mode***
<button class="btnAbt2"><li> Link 1 </li></button>
<button class="btnAbt2"><li> Link 2 </li></button>
<button class="btnAbt2"><li> Link 3 </li></button>
<button class="btnAbt2"><li> Link 4 </li></button>
<button class="btnAbt2"><li> Link 5 </li></button>
</ul>
</div>
I have successfully implemented adding an active class upon click. Now, I just need that active class to be the main text displayed in the dropdown menu.
For a visual reference, please see this image: here
Your help is greatly appreciated. Thank you!