get select tag data-id attribute values in array jquery code example Example: find element with data attribute jquery $("ul").find(`[data-slide='${current}']`)