![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
15/02/2008, 02:37
|
![Avatar de KarlanKas](http://static.forosdelweb.com/customavatars/avatar11549_2.gif) | Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes Puntos: 61 | |
Re: Problemas con validacion de un objeto radio
if (pago[i].checked)
{
marcado="sí";
return true;
}
Incluso podrías hacerlo así:
function validarBotonRadio()
{
with (document.pagos)
{
for ( var i=0; i< pago.length; i++)
{
if (pago[i].checked)
{
break;
}
}
if (i == pago.length)
{
window.alert("Debe seleccionar su opción de pago");
return false;
}
}
}
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia. |