I’m using the following wrapper for my RoyalSlider
<a class="rsContent white" href="#">
<img class="rsImg" src="#" data-color="white" width="2560" height="1440">
</a>
I would like to check the value of the data-attribut for the first rsContent so i use the following code
$('.rsContent').eq(0);
OR $('.rsContent').first();
which works fine so far but then when i try
$('.rsContent').eq(0).data('color');
OR $('.rsContent').eq(0).attr('class');
Jquery returns
undefined
Any ideas ?