match selected option value with li data attribute jquery code example Example: find element with data attribute jquery $("ul").find(`[data-slide='${current}']`)