I am currently in the process of developing a website that includes 5 divs
.
<div class="one"></div>
<div class="two"></div>
<div class="three"></div>
<div class="four"></div>
<div class="five"></div>
In one section of the website, I intend to incorporate two hyperlinks.
<a href="">PREVIOUS</a>
<a href="">NEXT</a>
When the "previous link" is selected, I would like it to display the div preceding the current one. The same action should occur when the "next link" is clicked.