Re: Insertar espacio en javascript pero esto:
Código:
txt = document.createTextNode('Nombre: '); //Creamos el nombre del participante
ele = document.createElement('input');
ele.type = 'text';
ele.size='40';
ele.name = 'cNombrePart'+numParticipante;
contenedor.appendChild(txt);
contenedor.appendChild(ele);
espacio = document.createTextNode(' ');
contenedor.appendChild(espacio);
//Creamos la fecha de finalización del curso
txt = document.createTextNode('Parentesco: ');
ele = document.createElement('input');
ele.type = 'text';
ele.name = 'cParentesco'+numParticipante;
contenedor.appendChild(txt);
contenedor.appendChild(ele);
No me funciona |