title: Remove input element by ID with javascript
body: <p>I have done this and it doesn't seem to be working!:</p>
  
  <p>Javascript:</p>
  
  <pre><code>&lt;script&gt;
  function hideOptionPhoto(){ 
      var element = document.getElementById("Photo1");
      element.parentNode.removeChild(Photo);   
  };
  
  window.onload = function() {
      hideOptionPhoto();
  };
  &lt;/script&gt;
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div id=Photo1&gt;
      &lt;input id="Photo" type="image" src="x.png" border="0" name="submit" alt=""&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I put the <code>&lt;input&gt;</code> inside a <code>&lt;div&gt;</code> because of the parent and child situation. Is that correct?</p>