Answers for "add element attribute javascript"

7

javascript add attribute

var element = document.getElementById('btnBuild');
element.setAttribute("disabled", "disabled");
Posted by: Guest on June-23-2021
12

setAttribute()

element.setAttribute(name, value);
element.setAttribute("style", "background-color: red;");
Posted by: Guest on April-19-2020

Code answers related to "add element attribute javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language