I'm developing a website that has a large input form.
What I want to do is disable a few form input elements that
only become enabled when a user has selected another form
element.
As a tester, I've been playing around with some test code
I've written - but my theory doesnt work as when the code
was tested in IE - I get a javascript error saying element not an
object or null.
Could anyone advise me where I'm going wrong with the following simply
script:
Code:
<html>
<head><title>Test Doc</title>
<script language="javascript">
function formdis(){
document.form1.box3.disabled=false;
}
</script>
</head>
<body>
<form id="form1" method="post" action="#">
<input type="text" id="box1" size="25" />
<input type="text" id="box2" size="25" onclick="formdis()" />
<input type="text" id="box3" name="box3" size="25" disabled="disabled" value="extra choice" />
</form>
</body>
</html>
Gaz