con mi poco conocimiento, puedo imaginar que esto es javascript
Cita:
Iniciado por IsaBelM
window.addEventListener('load', function() {
document.getElementById('clonar').addEventListener ('click', function() {
var txt = document.getElementById('f').elements[0].cloneNode(false);
var com = document.getElementById('f').elements[1].cloneNode(false);
var fragListado = document.createDocumentFragment();
fragListado.appendChild(txt);
fragListado.appendChild(com);
document.getElementById('f').appendChild(fragLista do);
}, false);
}, false);
pero al ponerlo en un archivo html, me da error en la siguiente linea:
Cita: document.getElementById('f').appendChild(fragLista do);
que es lo que he hecho mal?