hello,
i have a form, that contains only 5 checkboxes, named box[1], box[2] etc.
there are no other textfields than this five checkboxes;
people have to check at least one checkbox;
i want to do a form validation but it does not work;
this code normaly works on textfields without a problem.
here is the javascript source code i tried:
---------------------- source
code ---------------------------------------------
function formMaakCSV(hetForm){
if (hetForm.box[1].value='' || hetForm.box[2].value=''||
hetForm.box[3].value=''|| hetForm.box[4].value=''||
hetForm.box[5].value=''){
alert("U moet minimaal een checkbox invullen");
return (false);
}
return (true);
}
----------------------------------------------------------------------------
----
thanks