JavaScript Zmień wartość zestawu danych

let newvalue = 'foo'
element.setAttribute('data-something', newvalue )
Awful Angelfish