I'm currently working on creating a mobile side navbar that features dropdowns with additional links.
One issue I'm facing is trying to set it up so that when a link in the navigation is clicked, only the corresponding dropdown activates. At the moment, both the "About" and "Services" dropdowns activate simultaneously when either of their respective links is clicked.
I've attempted various methods using jQuery to achieve this functionality, but have been unsuccessful in getting it to work correctly.
$('.navbar-item-side').on('click', function() {
$('.navbar-content-side').toggleClass('dropdown-show');
});
/* CSS code goes here */
<!-- HTML code goes here -->