I am dynamically creating textboxes using document.createElement('input') and adding a break between them using the same method - then using .appendChild to add this to my div. 

```
var box = document.getElementById("myDiv");
var inp = document.createElement('input');
inp.type = 'text';
// add attributes, etc...
box.appendChild(inp);
box.appendChild(document.createElement("br"));

```

I can delete these textboxes using .removeChild and it is fine, but the breaks are still there.

```
box.removeChild(document.getElementById(...));

```

My question is how do I remove each of the breaks that were created between each of the textboxes?