![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
19/01/2012, 12:43
|
![Avatar de autonotel](http://static.forosdelweb.com/customavatars/avatar35233_1.gif) | | | Fecha de Ingreso: junio-2003 Ubicación: Vigo
Mensajes: 480
Antigüedad: 21 años, 8 meses Puntos: 13 | |
Respuesta: Validando... bueno se me ocurre que le pongas el else:
function valida_envia(formulario){
//valido campos
if (formulario.nombre.value.length==0 || formulario.email.value.length==0 || formulario.pais.value.length==0 ||
formulario.fecha.value.length==0 || formulario.mensaje.value.length==0){
alert("Por favor, complete todos los campos.");
formulario.nombre.focus()
return false;
} else {
return true;
}}
y también que les pongas id a los input:
<input name="nombre" id="nombre"...
a ver si va |