I\'ve got the following scenario:
var el = \'li\';
and there are 5 \'s on the page each with a data-slide=numb
data-slide=numb
This selector $("ul [data-slide='" + current +"']"); will work for following structure:
$("ul [data-slide='" + current +"']");
While this $("ul[data-slide='" + current +"']"); will work for:
$("ul[data-slide='" + current +"']");