Link to home
Start Free TrialLog in
Avatar of mannevenu
mannevenu

asked on

disable controls in mozilla firefox using javascript



I used this code but i was unable to disabled the controls in mozilla firefox.
<script type="text/javascript">
function DisableControls(el)
{
    try
    {
        el.disabled = true;
    }
    catch(E){}
    if (el.childNodes && el.childNodes.length > 0) {
        for (var x = 0; x < el.childNodes.length; x++) {
            DisableControls(el.childNodes[x]);
            }
    }
}
DisableControls(document.getElementById("<%=pnlQuestions.ClientID %>"));
</script>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of third
third
Flag of Philippines image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial