Is there a way to dynamically change the number within the nth-child brackets when clicking on a button? For instance, can I click a button and have the next slide in a slideshow appear?
.slideshow:nth-child(n){}
I specifically need to modify n using only native JavaScript.