Código HTML:
ele = document.createElement('input'); // creo un input
ele.type = 'file';
ele.onchange='unafuncion()';//este no me lo agrega
ele.name = 'foto';
ele.id = 'foto6'
//despues lo agrego al boton
|
|
#1 (permalink) |
![]() Fecha de Ingreso: junio-2007
Mensajes: 57
|
Agregar en un input type file un onchange con DOM
Código HTML:
ele = document.createElement('input'); // creo un input
ele.type = 'file';
ele.onchange='unafuncion()';//este no me lo agrega
ele.name = 'foto';
ele.id = 'foto6'
//despues lo agrego al boton
|
|
|
|
![]() |
| Herramientas | |
| Desplegado | |
|
|