I have these html structure here,
<div class="myCaption">
<h2>caption 1</h2>
<h2>caption 2</h2>
<h2>caption 3</h2>
<h2>caption 4</h2>
<h2>caption 5</h2>
</div>
I wonder how to use jquery to add a Class "active" to the first H2 tag, and then every e.g, 2 second, switch the "active" class from the first H2 tag to the second H2 tag and then to the third.....when come to the last H2 tag, it will loop again to the first H2, infinitely. Please advise. Thanks.