Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/03/2008, 03:50
Avatar de JavierB
JavierB
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,