![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
10/04/2006, 16:26
|
| | Fecha de Ingreso: mayo-2005
Mensajes: 63
Antigüedad: 19 años, 9 meses Puntos: 1 | |
Hola ya adapte tu codigo, espero te sirva
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script>
function validar2(obj_caja)
{
for (i=0;i<obj_caja.length;i++)
{
if (obj_caja[i].value=="")
alert("la caja no."+(i+1)+" esta vacia")
}
}
</script>
</head>
<body>
<form name="formulario" action="mipagina.php" method="post">
<input type="text" name="caja">
<input type="text" name="caja" >
<input type="button" value="Aceptar" class="boton" onClick="validar2(caja)">
</form>
</body>
</html> |