anirbang
04-30-2008, 11:43 AM
Hi,
My code to disable checkbox using onclick is not working on netscape communicator 4.76.
However it is working fine in later versions of IE & Netscape.
Is there any other way of implementing the same funtionality
without changing netscape version.(netscape 4.76 is all that I can use)
The code:
<html>
<head>
<script language=javascript>
function a(){
if (document.form1.check1.checked == true)
{document.form1.check2.setAttribute('disabled',true);}
else
{document.form1.check2.removeAttribute('disabled'); }
}
</script>
</head>
<body>
<form name=form1>
<input type="checkbox" name="check1" onClick="a();">
<input type="checkbox" name="check2" >
</form>
</body>
</html>
My code to disable checkbox using onclick is not working on netscape communicator 4.76.
However it is working fine in later versions of IE & Netscape.
Is there any other way of implementing the same funtionality
without changing netscape version.(netscape 4.76 is all that I can use)
The code:
<html>
<head>
<script language=javascript>
function a(){
if (document.form1.check1.checked == true)
{document.form1.check2.setAttribute('disabled',true);}
else
{document.form1.check2.removeAttribute('disabled'); }
}
</script>
</head>
<body>
<form name=form1>
<input type="checkbox" name="check1" onClick="a();">
<input type="checkbox" name="check2" >
</form>
</body>
</html>