Foros del Web » Programando para Internet » Javascript »

Llenado Automatico

Estas en el tema de Llenado Automatico en el foro de Javascript en Foros del Web. HOLA AMIGOS, TENGO LA SIGUIENTE DUDA, TENGO UN CAMPO QUE SE LLAMA RUT Y OTRO SUCURSAL Y UN TERCER CAMPO QUE SE LLAMA IDEN....BUENO RESULTA ...
  #1 (permalink)  
Antiguo 27/03/2002, 09:00
 
Fecha de Ingreso: febrero-2002
Mensajes: 33
Antigüedad: 22 años, 2 meses
Puntos: 0
Llenado Automatico

HOLA AMIGOS, TENGO LA SIGUIENTE DUDA, TENGO UN CAMPO QUE SE LLAMA RUT Y OTRO SUCURSAL Y UN TERCER CAMPO QUE SE LLAMA IDEN....BUENO RESULTA QUE ESTE CAMPO EL 3 IDEN, SE TENDRIA QUE LLENAR EN FORMA AUTOMATICA, ES DECIR, SERIA LA CONCATENACION DE LOS DOS CAMPOS ANTERIORES IDEN = RUT & SUCURSAL, COMO LOGRO ESO?
  #2 (permalink)  
Antiguo 27/03/2002, 09:13
bet
 
Fecha de Ingreso: febrero-2001
Mensajes: 292
Antigüedad: 23 años, 2 meses
Puntos: 0
Re: Llenado Automatico

Algo así es lo que estás necesitando?

Código:
<html>
<head>
<title> New Document </title>
<script language="JavaScript">
<!--
function llenar(){
	document.forms[0].iden.value = document.forms[0].rut.value + document.forms[0].suc.value;

}
//-->
</script>
</head>

<body bgcolor="#FFFFFF">

<form method=post action="">
<input type="text" name="rut" onBlur="llenar();">
<input type="text" name="suc" onBlur="llenar();">
<input type="text" name="iden" readonly>
</form>

</body>
</html>
<hr noshade size=1><img src="http://www.gograph.com/Images-8712/ClipArt/cat03.gif" height="50" border=0 align="absmiddle"> <font size="2" face="verdana" color="#000000">bet[/CODE]
  #3 (permalink)  
Antiguo 27/03/2002, 10:05
 
Fecha de Ingreso: febrero-2002
Mensajes: 33
Antigüedad: 22 años, 2 meses
Puntos: 0
Re: Llenado Automatico

bien master.... ;)
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 12:49.