Ver Mensaje Individual
  #4 (permalink)  
Antiguo 12/04/2006, 01:43
Avatar de elangelcaido
elangelcaido
 
Fecha de Ingreso: septiembre-2003
Ubicación: Oviedo
Mensajes: 1.068
Antigüedad: 21 años, 5 meses
Puntos: 4
Hola,

Al final hice lo de siempre, aprendi algo de javascript y me hice yo mismo el script, por si a alguien le ayuda:
Código:
<script>
function crearCampos(){
	var num=document.getElementById('campo').value;
	document.getElementById('linea').innerHTML='';
	for(var i=0;i<num;i++){
		document.getElementById('linea').innerHTML+='<input type="text" name="texto'+i+'"><br>';
	}
	//document.getElementById('linea').innerHTML=retorno;
}
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<input type="text" id="campo" name="campo" value="4" onChange="crearCampos()">
<div id="linea"></div>
</body>
</html>
__________________
Ta Luego! Al final sólo puede quedar uno...
________
lukos.org