Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

make button disabled

// Makes the button disabled

document.getElementById("myButtonId").setAttribute("disabled", ""); 

// Removes disabled attribute

document.getElementById("myButtonId").removeAttribute("disabled");
 
PREVIOUS NEXT
Tagged: #button #disabled
ADD COMMENT
Topic
Name
5+1 =