I've got the following scenario: var el = 'li'; and there are 5 <li>'s on the page each with a data-slide=number attribute (number being 1,2,3,4,5 respectively). I now need to find the currently active slide number which is mapped to var current = $('ul').data(current); and is updated on each slide change. So far my tries have been unsuccessful, trying to construct the selector that would match th