Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/12/2008, 11:57
Avatar de Breaklo
Breaklo
 
Fecha de Ingreso: junio-2008
Ubicación: Buenos Aires
Mensajes: 95
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: Validacion de Form

Asi esta bien? me prodias mostrar los errores?


Código HTML:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script>
function validacion(formulario, nombre, oculto, tipo)
{	
	if([tipo] == "check"){
		if([formulario].[nombre].value==""){
		document.[formulario].[nombre].border = "red solid 2px"
		document.[formulario].[oculto].value = 0
		}		
	}
}
</script>
</head>

<body>
<form name="f">
<input type="text" name="t" onblur="validacion('f', 't', 'h', 'check')" />
<input type="text" name="h" />
</form>
</body>
</html>