This topic is locked

checkbox / radios

3/29/2005 7:17:30 PM
ASPRunnerPro General questions
D
ducmis author

I have two checkboxes: EOL and Published. If the user checks EOL, I want to be able to uncheck the Published. The two cannot be checked at the same time.

Sergey Kornilov admin 4/3/2005

you can do this calling some Javascript in onchange event.

Here is the sample code:

<input type=checkbox name=EOL onclick="if (this.checked) document.forms.editform.Published.checked = false;">

<input type=checkbox name=Published onclick="if (this.checked) document.forms.editform.EOL.checked = false;">