<script>
function disableDiv(){
document.getElementById("testdiv").disabled = true;
var nodes = document.getElementById("testdiv").getElementsByTagName('*');
for(var i = 0; i < nodes.length; i++){
nodes[i].disabled = true;
}
}
</script>
html
<div id="testdiv">
//your controls here !
</div>
function disableDiv(){
document.getElementById("testdiv").disabled = true;
var nodes = document.getElementById("testdiv").getElementsByTagName('*');
for(var i = 0; i < nodes.length; i++){
nodes[i].disabled = true;
}
}
</script>
html
<div id="testdiv">
//your controls here !
</div>
No comments:
Post a Comment