Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript disable div

// This will disable just the div
document.getElementById("dcalc").disabled = true;

// or

// This will disable all the children of the div
var nodes = document.getElementById("dcalc").getElementsByTagName('*');
for(var i = 0; i < nodes.length; i++){
     nodes[i].disabled = true;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #disable #div
ADD COMMENT
Topic
Name
6+1 =