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
You have to inject the value of current into an Attribute Equals selector:
current
$("ul").find(`[data-slide='${current}']`)
For older JavaScript environments (ES5 and earlier):
$("ul").find("[data-slide='" + current + "']");