<div id=main>
<img id=leftbutton>
<div id=inner>
<div class=one>
<img />
<img />
</div>
<div class=two>
<img />
<img />
</div>
<div class=two>
<img />
<img />
</div>
<div>
<img id=rightbutton>
</div>
</div>
</div>
Trying to create a carousel.I am hiding class(two) at first showing only class(one). If I knew the active class(which is displayed) I can make a function to display next sibling when I press rightbutton but how to identify the siblings which is displayed among all other siblings