$('#readonlydiv').ready(function
() {
RecursiveDisable(document.getElementById("readonlydiv"));
});
function RecursiveDisable(element) {
try {
element.disabled = element.disabled ? false
: true;
}
catch (E) {
}
if (element.childNodes &&
element.childNodes.length > 0) {
for (var x = 0; x
< element.childNodes.length; x++) {
RecursiveDisable(element.childNodes[x]);
}
}
}
No comments:
Post a Comment