Validar Radios
Hola, me podrian decir como valido q un usuario selecione un radio? no le tengo q dar el checked a ninguno y es obligatorio checar uno pero con el:
if (frm.optCalif.value == " " ) No me lo valida, me podrian ayudar porfa
Gracias
Saludos!!!
if (frm.optCalif.value == " " ) No me lo valida, me podrian ayudar porfa
Gracias
Saludos!!!
Estas validan checkbox
//valido checkbox
if (document.usuario.sia.checked == false & document.usuario.noa.checked == false ){
alert("*** ERROR *** Debe Aceptar o no , el presente contrato, GRACIAS")
document.usuario.sia.focus()
return 0;
}
if (document.usuario.sia.checked == true & document.usuario.noa.checked == true ){
alert("*** ERROR *** Solo selecione una opción ")
document.usuario.sia.focus()
return 0;
}
if (document.usuario.noa.checked == true ){
alert("SU REGISTRO ES INVALIDO / GRACIAS ")
document.location="index.html"
return 0;
}
//valido checkbox
if (document.usuario.sia.checked == false & document.usuario.noa.checked == false ){
alert("*** ERROR *** Debe Aceptar o no , el presente contrato, GRACIAS")
document.usuario.sia.focus()
return 0;
}
if (document.usuario.sia.checked == true & document.usuario.noa.checked == true ){
alert("*** ERROR *** Solo selecione una opción ")
document.usuario.sia.focus()
return 0;
}
if (document.usuario.noa.checked == true ){
alert("SU REGISTRO ES INVALIDO / GRACIAS ")
document.location="index.html"
return 0;
}