Closed r-interactive closed 1 year ago
The issue is with your jQuery code. It runs as soon as possible. The GLightbox html only appears after a trigger is clicked. You can use some of the events in the docs to do what you’re trying to do at the right time.
Hi,
I have a list inside the popup box and I want to loop through the list and toggle the classname 'active' every 4 seconds. So, first item is active, after 4 seconds, the first item class 'active' is removed, class 'active' is added to the second list item, etc... The code below is working when the list is outside of the popup box, but when the list is inside the popup box, the custom jquery code isn't working. What is the issue?
HTML:
jquery: