I would like to achieve a dropdown menu once the hamburger SVG is clicked. I am using Tailwind with the TALL Stack. Most Tailwind tutorials or posts I have come across are utilizing Vue.Js which I am not using in this project.
Here is my code, I am hoping someone can point me in the right direction.
<button type="button" id="hamburgerbtn" class="hover:text-white focus:outline-none focus:text-white">
<div class="hidden mt-3 md:flex md:flex-row" id="mobileMenu">
<style>
.active{
display: block;
}
</style>
<script>
let hamburger = document.getElementById('hamburgerbtn');
let mobileMenu = document.getElementById('mobileMenu');
hamburger.addEventListener('click', function(){
mobileMenu.classList.toggle('active');
});
</script>