Without JQuery, ES6
document.querySelectorAll(`[data-slide='${CSS.escape(current)}']`); I know the question is about JQuery, but readers may want a pure JS method.
document.querySelectorAll(`[data-slide='${CSS.escape(current)}']`); I know the question is about JQuery, but readers may want a pure JS method.