Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set data-id javascript

var d = document.getElementById("test");  //   Javascript
d.setAttribute('data-id' , 'Next');       //
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #javascript
ADD COMMENT
Topic
Name
7+2 =