I know that there is the possibility to jump to a certain position in the owl carousel by current position-number. Like:
$('.jumpTo').click(function(){
carousel.trigger('owl.jumpTo', 3)
});
Would it be possible to jump to matching ID? Let's assume that I have a site with thumbnails and the click on one of them opens a modal with the owl carousel beeing at the right/matching position. Something like:
var myattr = $(this).attr('subcategory');
$('.jumpTo').click(function(){
carousel.trigger('owl.jumpTo', '[subcategory="' + myattr + '"]')
});
Thanks in advance!
EDIT:
An hash-URL solutio would also be great, but: the owl carousel opens up in an fancybox...
SECOND EDIT:
Sorry, the specifications was changed and it gets more difficult. The owl slider opens up in an iframe in an fancybox modal. Any ideas how to communicate the data into it?!
THIRD EDIT:
code from the website:
<div id="theid" class="joinlight breit-quarter" subcategory="test">
<div class="breit-quarter-inside">
<a id="content_1_phcontent_1_rptPictures_ctl00_lnkImage" class="quarterthumb fancybox fancybox.iframe " href="extern1.html"></a>
<p>Quartier Reiterstaffel: Dies ist ein Testtext</p>
<p> </p>
<p><a id="content_1_phcontent_1_rptPictures_ctl00_lnkDownloadJPG" class="jobTitle" href="http://placehold.it/400x300">Download JPG</a></p>
<p></p>
</div>
</div>
Code from the iframe:
<div id="wrap">
<div id="wrap_small">
<div id="sync2" class="owl-retro-carousel">
<div class="item"><img src="http://placehold.it/80x60" /></div>
<div class="item"><img src="http://placehold.it/80x60" /></div>
<div class="item"><img src="http://placehold.it/80x60" /></div>
</div>
</div>
<div id="wrap_big">
<div id="sync1" class="owl-retro-carousel">
<div class="item"><img src="http://placehold.it/500x500" /><p>Room shot at the Delta Bow Valley during the speaker presentations</p></div>
<div class="item"><img src="http://placehold.it/500x500" /><p>Derrick Rozdeba, Bayer CropScience, presenting to delegate teams on how to present their ideas</p></div>
<div class="item" subcategory="test"><img src="http://placehold.it/500x500" /><p>Team presentations on Friday</p></div>
</div>
</div>
</div>
So, if i click on the href on the webiste the owl carousel should jump to the third(matching) item.