0
I’m having a simple doubt.
I have a slide rolling on the site and his arrows are:
<li><a class="flex-next" href="#">next</a></li>
<li><a class="flex-back" href="#">back</a></li>
I need to add via Javascript a class and a link so that when clicked pass the image and scroll to the top of the slide, being like this:
<li><a class="flex-next js-smooth-scroll" href="#topo">next</a></li>
<li><a class="flex-back js-smooth-scroll" href="#topo">back</a></li>
need to add the class via Javascript js-smooth-scroll
and the link #topo
.
Welcome to the Stackoverflow. Please post an excerpt of the code you already have to get a better idea of the problem, I suggest you read this help article from the site: How to create a Minimum, Complete and Verifiable example.
– Pedro Gaspar