I want to get data-* (data dash, or dataset) values without knowing what follows after the dash. Ex:
<div data-whatever="value" data-another="value2"></div>
I don't know how the "whatever" or "another" parts are named, but I need to grab the value. Is it possible with JavaScript?
Because
document.querySelectorAll('[data-*]')
is not a valid selector