Значение набора данных об изменении JavaScript
let newvalue = 'foo'
element.setAttribute('data-something', newvalue )
Awful Angelfish
let newvalue = 'foo'
element.setAttribute('data-something', newvalue )