You have to find a way to evaluate each checkbox. I believe something like this would work.
<script type="text/javascript">
function checkCheckBoxes(){
var checkSelected = false;
for (i = 0; i < document.Dates.checkbox.length; i++)
{
if (document.Dates.checkbox[i].checked){
checkSelected = true;
}
if (!checkSelected)
{
alert('You didn\'t choose any of the checkboxes!');
return false;
}
}
}
</script>
buddylee17
Practically a Master Poster
697 posts since Nov 2007
Reputation Points: 232
Solved Threads: 137