I have a script to add an input field element when a current one is pressed. When i use innerHTML it replaces the current, which is not what i want. So I figured appendChild
AppendChild expects an object, where innerHTML works with a String. And since your server returns partial HTML, this will only work with innerHTML.