jquery find all elements with data-id on dom code example Example: jquery get data-id const dataId = $('#elementId').attr("data-id");