I'm trying to remove an element that I created dynamically. This is how I created it...
var divTag = document.createElement("div");
divTag.id = "affiliation";
divTag.innerHTML = "Stuff Here";
I've tried several methods of removing it without success. Here's what I have so far.
var A = document.getElementById('affiliation');
A.parentNode.removeChild(A);
Suggestions?