Reputation: 15
Good evning. I'm using Colorbox and I have a question: For example, I have a colorbox images list from 1 to 10.
How can I open a Colorbox with start image is picture number 5/10 by click on a different button ?
Thanks you all.
Upvotes: 0
Views: 624
Reputation: 35194
Quick and dirty:
$('a').eq(5).click();
Just select the a-tag that you usually click for image 5 and trigger a click on it.
Upvotes: 1