html data attribute use in js code example
Example: get data attribute javascript
//
const el = document.querySelector('#element')
el.dataset.name // 'john'
//
const el = document.querySelector('#element')
el.dataset.name // 'john'