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