I am working on a script that will scroll through list elements by clicking on a “previous” and “next” link. When the user first clicks on the “next” button, they have to click twice before the second list element is displayed. The “previous” link works just fine but how can fix my script to where the user only has to click once on the “next” button?
Share
Simply put
activeon the first element by default.