
November 5th, 2004, 06:42 AM
|
|
Contributing User
|
|
Join Date: Jun 2004
Posts: 118

Time spent in forums: 1 Day 2 h 53 m 40 sec
Reputation Power: 5
|
|
|
Checkbox validation problem
I have 3 checkboxes: fldPDF, fldArtwork, fldDoc. I want to display an alert box if none of them are checked. I have the following code
Code:
function Validate(theform) {
if (document.theform.fldPDF.checked == false && document.theform.fldArtwork.checked == false && document.theform.fldDoc.checked == false) {
alert("Please select at least one checkbox.\n");
return false;
}
}
This isnt working
i have this code on the form button:
<input name="imageField" value="submit" type="image" src="../images/addtoBasket.gif" onClick="return Validate(form<% =iRecordsShown %>)" width="107" height="18" border="0>
does anyone have any ideas on how to make this work
|