So, I have all my code correct but I just like to know the background logic/rules to everything. I need more information on what this new next() method actually does?
Does it mean that it will just magically search for all other divs which share the same class of "article" and automatically add this specified class of "current" to that following one in the html hierarchy? If so, how does it know to look for an "article" div it is not being told that anywhere? How does it know not to put it inside the children? If there had been another div between articles would it just add it to that?
I'm sorry but sounds to easy to be true, I wonder all of its applications or if it is built specifically for this scenario only?