I would like to include in my navbar a button to scroll to the next section in the navbar's <ul>
. Currently, I see that in the navbar, the li
that is active gains a class active
. However, I am not sure how to report this change to the button so that when it is clicked, it will automatically go to the section corresponding to the list item after the currently active one. Could someone please give me some tips for how to do this, ideally in an elegant, bootstrappy way?
Update
Here is a working fiddle: http://jsfiddle.net/mikesol/u4L7gL9e/1/ You'll see the comment that states:
I would like this to automatically go to the next section instead of always going to apple. For example, when the reader is over the section carrot, clicking on this should fastforward to date, etc..