Your logic says:
If checkbox1 and checkbox2 and radio1 is checked, then display a message.
Code:
if((form.checkbox2.checked && form.checkbox3.checked) && form.radio1.checked) {
theMessage = theMessage + "\n --> You selected checkbox 2 & 3, so you therefore need to select the radio button";
}
I think you need to add a ! in front of 'form.radio1.checked' so that it only gives the message when a radio button is not selected
Code:
if((form.checkbox2.checked && form.checkbox3.checked) && !form.radio1.checked) {
theMessage = theMessage + "\n --> You selected checkbox 2 & 3, so you therefore need to select the radio button";
}
Ryan
Bookmarks