Question
A little java help
I have a form where I dynamically generate ten checkboxes.
If the seventh box is checked, then I need to make one of the input fields required.
I have something like this (lots of variations) but it will not work :
if (formname.checkbox_id["7"].checked && formname.comments.value == "")
{
alert ("Comments are required.");
formname.comments.focus();
returnStatus(false);
}
How do I do this ? thanks
If the seventh box is checked, then I need to make one of the input fields required.
I have something like this (lots of variations) but it will not work :
if (formname.checkbox_id["7"].checked && formname.comments.value == "")
{
alert ("Comments are required.");
formname.comments.focus();
returnStatus(false);
}
How do I do this ? thanks
