I'm trying to get the data attribute value thats on an image and then use that value to set my slider speed, how do I get this value? I tried the below but console.log returns undefined..
var sliderSpeed = $('logo').data('data-speed');
console.log(sliderSpeed);
$('.infinite-slider').infiniteslide({
'speed': sliderSpeed,
clone: 10
});
<li><img class="logo full-width" src="" data-speed="100"></li>