I have a list with several items, and just above this list will have two buttons, "next" and "previous". I wanted the user to click next, for example, to add a different class to the next item in the list and remove the class from the previous item.
I know what I can do using next().addClass
of jQuery but I could not.