Answer Question
radio button validation
I need to be able to validat drop menus text feilds and radio button all in one function. So far I have been able to validate the menus and the text feilds but i am still having trouble witht he radio buttons. heres the code I have so far.
//check to make sure text feilds are not empty
function validateForm() {
if (document.application.fname.value == "") {
alert("This field is empty."); //Informs user of empty field
document.application.fname.focus();
return false;
}
if (document.application.lname.value == "") {
alert("This field is empty."); //Informs user of empty field
document.application.lname.focus();
return false;
}
if (document.application.cmail1.value == "") {
alert("This field is empty."); //Informs user of empty field
document.application.cmail1.focus();
return false;
}
if (document.application.cmail.value == "") {
alert("This field is empty."); //Informs user of empty field
document.application.cmail.focus();
return false;
}
if (document.application.college.value == "0") {
alert("This field is empty."); //Informs user of empty field
document.application.college.focus();
return false;
}
if (document.application.age.value == "0") {
alert("This field is empty."); //Informs user of empty field
document.application.age.focus();
return false;
}
if (form.application.act.value == "") {
alert("This field is empty."); //Informs user of empty field
form.application.act.focus();
return false;
}
}
Computer Programmer application
Apllication For What ever I Think Of Using It For
First name:
Last name:
E-Mail
confirm E-mail
Years In College
0
1
2
3
4
5+
select your age
5-10
11-15
16-20
21-25
My Favorite Activity Is
Biking
Sports
V-Games
Sleeping
My Favorite Food Is
pizza
burgers
mac&cheese
subs
TEXT
Uploading file and scanning for virus...
Please Wait