I have one of these scripts:
——begin existing scripts—
<!– This script and many more are available free online at –>
<!– The JavaScript Source!! [url]http://javascript.internet.com
<!– Begin
function checkFields() {
missinginfo = “”;
if (document.form.url.value == “”) {
missinginfo += “n – URL”;
}
if(document.form.title.value == “”) {
missinginfo += “n – Title”;
}
if(document.form.description.value == “”) {
missinginfo += “n – Description”;
}
if ((document.form.email.value == “”) ||
(document.form.email.value.indexOf(‘@’) == -1) ||
(document.form.email.value.indexOf(‘.’) == -1)) {
missinginfo += “n – Email address”;
}
if (missinginfo != “”) {
missinginfo =”_____________________________n” +
“You failed to correctly fill in your:n” +
missinginfo + “n
“nAll fields need to be entered correctly nbefore message can be sent!”;
alert(missinginfo);
return false;
}
else return true;
}
// End –>
</script>
—end of existing scvript——–
Now i would like to add 2 or 3 unchecked checkboxes to my form and the user must select at least one, otherwise the form will not be sent.
I have tried a few things already but nothing so far worked.
Can anyone please help out???