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
parent.appendChild() is a function waiting for DomNode Object and you are passing a String, it can't work...
Try :
var d = document.createElement('div'); d.innerHtml = xmlhttp.responseText; document.getElementById("org_div1").appendChild(d);