Hi I am trying to check to see if a check box has a value,
the checkboxes are built from an asp script, there can be as many as 1 to 10 boxes and they all have the same name,
when i submit the form i want to check to see whether at least 1 of the boxes have been checked, if it hasnt i want to return a message box
this is the script im using:
the checkboxes are built from an asp script, there can be as many as 1 to 10 boxes and they all have the same name,
when i submit the form i want to check to see whether at least 1 of the boxes have been checked, if it hasnt i want to return a message box
this is the script im using:
Code:
function checkTheBoxes()
if (frmSelectPictures.selectimageid.value == "") {
alert('Please check a box.')
return false;
}