Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/06/2008, 19:51
anion0x
 
Fecha de Ingreso: junio-2008
Mensajes: 110
Antigüedad: 16 años, 8 meses
Puntos: 0
Respuesta: agregar input a un form

gracias, pero estoy buscando algo mas siemple que me permita entenderlo a mi.

Código:
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function agrega_fila(id){
    var tbody = document.getElementById(id).getElementsByTagName("TBODY")[0];
    var row = document.createElement("TR")
    var td1 = document.createElement("TD")
    var inpu = ducument.createElement("in")
    td1.appendChlid(inpu);
	row.appendChild(td1);
    tbody.appendChild(row);
  }
</script>
</HEAD>

<BODY>

<form action="rrhh.php" method="get" enctype="text/plain">
<table name="tabla" id="cc">
  <tbody>
	<tr>
		<td><input type="text" name="idioma" id="idiom"><a href="javascript:agregar_fila('cc')">[+] Agregar</a></td>
	</tr>
  </tbody>
</table>

</form>

</body>
Algo asi?, pero no me anda.