![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
08/05/2007, 09:32
|
![Avatar de ferbux](http://static.forosdelweb.com/customavatars/avatar180221_1.gif) | | | Fecha de Ingreso: mayo-2007 Ubicación: por ahí intentado ayudar
Mensajes: 823
Antigüedad: 17 años, 9 meses Puntos: 6 | |
Re: script para validar campos en formulario ¿? hola, pues puedes hacer algo asi:
function validar(){
if(document.formulario.fini=" ")
alert("Ingrese fecha de inicio");
if(document.formulario.ffin=" ")
alert("Ingrese fecha de terminacion");
if(document.formulario.dep=" ")
alert("Ingrese el numero de pedido");
}
y la mandas llamar asi:
<input type="hidden" name="enviar" value="Enviar">
<input type="Submit" name="enviar" value="Enviar" class=button onclick="validar()">
espero te sirva.
sALUDOS. |