I have successfully implemented a prices tab on the top of my page, with tabs for different packages at the bottom. When a user selects a certain package, only specific items from the list are visible while the others are hidden. I managed to streamline this process by using the same div for all three packages and adding attributes to each list item. The goal is for users to click on a tab, which will then locate the corresponding attribute within the list and apply an active class to that item. I have been working tirelessly on this issue for quite some time now, but have yet to find a solution. Can anyone offer some assistance?
[https://jsfiddle.net/90mynos3/][1]