Skip to content Skip to sidebar Skip to footer

Removechild Is Not A Function

window.onload = initPage; var firstname = false; var lastname = false; function initPage() { addEventHandler(document.getElementById('firstname'), 'blur', verifyFirst); ad

Solution 1:

Change the code on the line 68 from this

document.getElementById("displayname".removeChild(display[i]));

to this

document.getElementById("displayname").removeChild(display[i]);

Solution 2:

removeChild() is a method applicable to a Node (and not a string or a selector as you have used in your code).

document.getElementById("displayname").removeChild(display[i])); should be the appropriate syntax.

Post a Comment for "Removechild Is Not A Function"