I have a template that allows for multiple royalslider videos on a page (I don't embed the videos straight into the template because the client wants to use their own hi-res images as placeholders). I have a play button set up for each but when one is clicked, all play. How do I alter my jquery code to target each if i dynamically alter the class with php using an idx value (i.e. .myclass-0, .myclass-1, .myclass-2, etc.)?
<li class="gallery-item large-12 columns collapse royalSlider rsDefault vidImg">
<div class="vidLaunch">
<div class="defer-image image-ratio:16x9">
<div class="rsImg" src="[[+file_url:phpthumbof=`w=970&h=546&q=80&zc=1`]]" data-rsVideo="[[+url]]" alt="[[+name]]"></div>
</div>
</div>
$('.vidLaunch').click(function() {
$('.royalSlider').royalSlider('playVideo');
});
html? what type of element are.myclass-0,.myclass-1etc?