how to select element by data attribute code example
Example 1: jquery select element with data
$('[data-attribute="value"]');
Example 2: find element with data attribute jquery
$("ul").find(`[data-slide='${current}']`)
$('[data-attribute="value"]');
$("ul").find(`[data-slide='${current}']`)