javascript get data attribute of selector code example Example: javascript queryselector data attribute document.querySelector(`[data-price="50"]`)