21 ms·
You can also just set dataset[0] on the raw element: document.getElementById('myProgrecss').dataset.progrecss = '<PERCENT>'; [0]: https://developer.mozill
by woogley 13y ago
You can also just set dataset[0] on the raw element:
document.getElementById('myProgrecss').dataset.progrecss = '<PERCENT>';
[0]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.dataset https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement...
- codez 13y agoHey woogley, Thanks for that :) I was actually unaware of that method and I prefer that style if I'm honest. Thanks!