Answers for "document add attribute js"

13

javascript add attribute

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

How to add attribute in a element

var e = $('<div style="display:block; float:left;"></div>');

e.attr('id', 'myid');
Posted by: Guest on April-20-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language