In my one-page structure, I have multiple sections with a categorized nav-bar that includes drop-down lists for each category. My goal is to display the drop-down menu of the category corresponding to the current section.
if($("#About").hasClass('active')){
$(".tab-menu-content").css("display","block");
}
I attempted to implement this approach but it does not seem to be working. Any suggestions or alternative solutions would be greatly appreciated. Thank you!
Edit: I apologize for not being able to share the code directly. Let me provide more details on the issue at hand. Here is a visual representation of my navigation menu with dropdowns on hover.