get the data attribute value in jquery on click code example Example: find element with data attribute jquery $("ul").find(`[data-slide='${current}']`)