![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
26/03/2008, 03:50
|
![Avatar de JavierB](http://static.forosdelweb.com/customavatars/avatar16568_12.gif) | Colaborador | | Fecha de Ingreso: febrero-2002 Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años Puntos: 772 | |
Re: añadir validacion button Hola pompeu. Bienvenido al foro.
Pon así el evento onsubmit
Código:
onsubmit = "return ver(this)"
Para validar los radio:
Código:
if (!frm.sexe[0].checked && !frm.sexe[1].checked)
return false;
y para el select:
Código:
if (frm.poblacio.selectedIndex==0)
return false;
Saludos, |