Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript change data attribute value

element.dataset.keyName = 'newValue';
 
PREVIOUS NEXT
Tagged: #javascript #change #data #attribute
ADD COMMENT
Topic
Name
8+4 =