![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
15/05/2008, 11:43
|
![Avatar de pateketrueke](http://static.forosdelweb.com/customavatars/avatar229417_6.gif) | Modernizr | | Fecha de Ingreso: abril-2008 Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años, 10 meses Puntos: 2534 | |
Re: Agregar un número indefinido de campos a un formulario no es necesario un bucle....
por ej.
Javascript:
function mas_file(id)
{
var foo = '<input type="file" name="archivos[]"/>';
var id=document.getElementById(id);
id.innerHTML+=foo;
}
en tu enlace <a href="javascript:mas_file('mi_div')">Agregar++</a> |