I have referenced this site http://jsfiddle.net/8FMsH/1/
//html
$(".rightArrow").on('click',function(){
imageClicked.closest('.images .os').next().find('img').trigger('click');
});
However, the code is not working as expected and it's not moving to the next image. The HTML block below contains and displays images:
<div class="images">
<img class="os" id="1" src="http://labalec.fr/erwan/wp-content/uploads/2013/09/ubuntu_large.jpeg" alt="ubuntu">
<img class="os" id="2" src="http://betanews.com/wp-content/uploads/2013/06/windows-8.1-start.jpg" alt="windows" >
</div>
<div class="overlay"> </div>
<div class="slideshow">
<img class="rightArrow" src="http://upload.wikimedia.org/wikipedia/commons/7/7d/Aiga_rightarrow_inv.gif" alt="rightArrow" >
<img class="popup" src="" alt="clickedImage" >
</div>
If anyone could offer some assistance, I would greatly appreciate it.