JavaScript mengubah nilai atribut data
element.dataset.keyName = 'newValue';
Friendly Finch
element.dataset.keyName = 'newValue';