I have followed this code using the Debut theme.
My problem is that the jquery code does not seem to be working.
Jquery loads fine on my site, so no issues there.
My console is clean, no errors.
When the html loads on the site, it loads as 3 tabs, with the content inside tab 1 showing, and the content inside tabs 2 and 3 hidden.
So far, so good.
The problem comes when I click on another tab. Nothing happens. I expect the ‘active’ class to be removed from the first tab, and to be applied to the current tab that was clicked. This is not happening.
A funny thing, though, is that when I click the current active tab, the code works fine. I added a console.log to test, and I see that when I click that first active tab, the active class is removed, and then added.
Any pointers appreciated.
I am placing this code all in a section on my site, if that makes a difference. It is a blank liquid file. Here is the code of the file:
- Info
- Shipping
- Returns
inside 1
inside 2
inside 3