queryselectorall in javascript to get data attribute value code example Example: queryselectorall in javascript to get data attribute value //javascript get html data attribute