dane
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by dane
-
-
Hello I am having some difficulties with my javascript tabs.
I used this tutorial to set up my tabs. https://www.w3schools.com/howto/howto_js_tabs.asp
For the most part it works but I have a couple of pages that use it with me creating a dynamic amount of tabs. It will works probably 98% of the time. But for some reason some of the tabs will not change the display to block. The div tab with the information is there if I go inspect the page and manually change the display to block. Can anyone help me figure out why this is happening.
Thanks
Javascript Tabs not working
in JavaScript
Posted
Here is my code to create the buttons
and here is my code to open the tab
as I was saying if I inspect the page it will turn all the divs to none and it will also change the active to the correct button but not turn the one I want to block and for some of the pages it works for all the tabs and then for others it doesn't