Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 37
    For those of you who care, given the structure <ul><li data-slide="item"></li></ul> this answer's selector will return undefined so it does not work given the user's scenario. This answer WILL work for the structure <ul data-slide="item"><li></li></ul> While I understand why its popularity due to brevity, it is technically an incorrect answer. jsfiddle.net/py5p2abL/1 Commented Dec 4, 2014 at 15:15
  • Just put a space between the ul and the brackets and it will work. Commented Jan 5, 2022 at 6:29