Syntax
var x = HTMLElement.dataset.*;
HTMLElement.dataset.* = “value”;
Remarks
MDN Documentation:
Using data attributes
.
Accessing data attributes