I am seeking a solution to display the second div (box2) every 3 seconds. Can anyone help me achieve this using jQuery?
<div id="box1" style="background-color:#0000FF">
<h3>This is a heading in a div element</h3>
<p>This is some text in a div element.</p>
</div>
<div id="box2" style="background-color:red">
<h3>This is a heading in a div element</h3>
I have created a fiddle to demonstrate the issue: http://jsfiddle.net/jRmrp/5/
Update 1
The solution provided by Khanh TO works, but I am looking for a way to handle more than two div elements. The current solution only works for two.