Setting active image in carousel
I have a carousel in my View like below and I have 4 images to be displayed in the carousel and have each of them as html divs.
I am able to set the images for the carousel dynamically by getting the ids of the html and doing a htmlid.innerhtml =. This works fine.
Now I need to set the active page as image2. I tried using carouselId.setActivePage("img2"). But this didnt work. Any help? Thanks
<Carousel id="carouselId" >
<html:div id="img2"> </html:div>