wandoledzep/bxslider — Issue #51: Styling hidden LI elements not working
Author: alertedsnake
Created: 2011-11-09 20:41:19+00:00
State: open

I've got a slider that I need to be able to click a LI element to select it. Right now I'm just .addClass('selected') to the LI in question, and it works so long as the LI started visible, or close to visible.

When the LI starts not visible (and it seems start at the 5th non-visible entry, while I have 8 visible by default), the results of the addClass() don't actually take effect until you scroll around a bit. When browsing through the DOM with Chrome's dev tools, I find that the class 'selected' wasn't actually added to the LI element.

Any ides what's going on here? I can't see any difference between the LI elements.