Les dejo el script que tengo hasta el momento y el progreso de la funcion "borrar":
<html>
<head>
<title>Documento sin título</title>
Código Javascript:
</head>Ver original
<script type="text/javascript"> num=0; function crear(obj) { num++; fi = document.getElementById('fiel'); contenedor = document.createElement('div'); contenedor.id = 'div'+num; fi.appendChild(contenedor); ele = document.createElement('input'); ele.type = 'text'; ele.name = 'text'+num; contenedor.appendChild(ele); } function borrar() { fi = document.getElementById('fiel'); fi.removeChild(document.getElementById(obj)); } </script>
<body>
<form name="form1" method="POST" action="guardarFormulario.php">
<input type="button" value="Crear" onclick="crear(this)">
<input type="button" name="b2" value="Quitar" onClick="borrar()" >
<fieldset id="fiel">
</fieldset>
<input name="botonGuardar" type="submit" value="Guardar" onclick="enviar(this)">
</form>
</body>
</html>
No logro hacer funcional la funcion de borrar, si alguien sabe como podria lograrlo desde ya gracias :D