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