Checkbox checks other checkboxes?

M

MBo

Hi I would like to have one checkbox change the value of another checkbox. In Excel I was able to acheive this with the following:

Private Sub CheckBox011_Click()
If CheckBox011.Value = False Then CheckBox012.Value = CheckBox011.Value
End Sub

What would be the syntax to do this in Front Page? All I have is this and it doesn't work...

<input type="checkbox" name="checkbox1"
onclick="checkbox2.value=checkbox1.value">

Thanks

MBo
 
J

Jon Spivey

Hi,
something like this
<input type="checkbox" name="check1"
onclick="this.form.check2.checked=true;">

--
Cheers,
Jon
Microsoft MVP - FP

MBo said:
Hi I would like to have one checkbox change the value of another checkbox.
In Excel I was able to acheive this with the following:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top