I have 10 images on a page which has 2 buttons: next and previous. On next I want to go from the 1st to 10th image and vice versa for previous button. This is my html code:
<div id="Div1"> <img class='display' src="" alt="adf"/></div>
<button id="Button1">prev</button>
<button id="Button2">next</button>
<div id='Div2'>
<img src="a_large.jpg" alt="aadf" />
<img src="b_large.jpg" alt="dfD" />
<img src="c_large.jpg" alt="aadf" />
<img src="d_large.jpg" alt="dfD" />
<img src="e_large.jpg" alt="aadf" />
<img src="f_large.jpg" alt="dfD" />
<img src="g_large.jpg" alt="aadf" />
<img src="h_large.jpg" alt="dfD" />
<img src="i_large.jpg" alt="aadf" />
<img src="j_large.jpg" alt="dfD" />
</div>
I am newbie to jQuery. Can you please tell me the code for next and previous buttons. Thanks in advance.