I have this HTML structure:

.prev()
.get(
0)
.next()
will need the same treatment with .nextUntil
You should also do some checking to prevent errors from pressing previous when you are on the first one.
Solution 2:
You dont need to call get(0) because prev get one or none.
Post a Comment for "Jquery - Get(0) Undefined"