Can someone assist me with getting a script to work on my website that will allow me to switch between four different sets of content using buttons labeled 1, 2, 3, and 4?
I have tried using addClass and removeClass but cannot seem to get it right. Here is an example set of contents:
<ul>
<li class="article-list-vertical-1">
<a href="#" style="background-image: url('/img.jpg')"></a>
<div>
<h2>Article title #1</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu lacus mattis laoreet diam a volutpat magna.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu lacus mattis laoreet diam a, volutpat magna.</p>
<a href="#" class="read-more">Read more <i class="fa fa-chevron-right"></i></a>
</div>
</li>
</ul>
Your help in resolving this issue would be greatly appreciated.