nikko50
09-04-2008, 04:10 AM
Hi all. With the below test form I'm trying to enable the checkbox only when the user select the "CLOSED" option from the select box. Initially when the form loads the checkbox ihas a onClick=\"return false\" event. How can I do this??
<form method="POST" name="theForm" action="--WEBBOT-SELF--">
<p><input type="checkbox" onClick="return false" name="TEST"></p>
<p><select name="STATUS">
<option value="ACTIVE">ACTIVE</option>
<option value="CLOSED">CLOSED</option>
</select></p>
<p><input type="submit" value="Submit" name="B1"></p>
</form>
<form method="POST" name="theForm" action="--WEBBOT-SELF--">
<p><input type="checkbox" onClick="return false" name="TEST"></p>
<p><select name="STATUS">
<option value="ACTIVE">ACTIVE</option>
<option value="CLOSED">CLOSED</option>
</select></p>
<p><input type="submit" value="Submit" name="B1"></p>
</form>