Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript change dataset value

let newvalue = 'foo'
element.setAttribute('data-something', newvalue )
 
PREVIOUS NEXT
Tagged: #javascript #change #dataset
ADD COMMENT
Topic
Name
5+4 =