Answers for "set data-id javascript"

0

set data-id javascript

var d = document.getElementById("test");  //   Javascript
d.setAttribute('data-id' , 'Next');       //
Posted by: Guest on January-11-2021
0

set data-id javascript

$('#test').attr('data-id' , 'Next');   // JQuery
Posted by: Guest on January-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language