I tried to implement clickable tabs by following a tutorial. I created both horizontal and vertical tabs. However, I want to have both buttons active at the same time. For example, if any of the horizontal buttons is active (number less than 6), then the first vertical button (number 6) should also be active, and vice versa. I attempted to add a class to achieve this, but the active classes were not being removed properly.
tablinks[6].className = tablinks[6].className.replace("", " active");
How can I make this functionality work smoothly?
Here is the complete code snippet:
...