I\'ve got the following scenario:
var el = \'li\';
and there are 5 \'s on the page each with a data-slide=numb
I have faced the same issue while fetching elements using jQuery and data-* attribute.
so for your reference the shortest code is here:
This is my HTML Code:
This is my jQuery selector:
$('section[data-js="carousel"]');
// this will return array of the section elements which has data-js="carousel" attribute.