Quote:
Originally Posted by aso186
Gather all the checkboxes in an array and add the values. If the total is equal to zero, no checkbox was selected. For the text field, just check the value length is greater than or equal to one.
- Code: Select all
if (checkboxes.total == 0 || textfield.value <= 1) {
return false;
}
|
yes but then if any of the check boxes were checked then you would have to fill out the text field, but it is only shown when the 'other' chkbox is checked.