title: How to remove next element using JavaScript (without using jQuery)
body: <p>I need something like this.</p>
  
  <pre><code>&lt;a onclick="SaveNote(this);" &gt;Save&lt;/a&gt;
  &lt;a href="javascript:void(0);" id="112"&gt;Cancel&lt;/a&gt;
  &lt;a href="javascript:void(0);" id="112"&gt;Delete&lt;/a&gt;
  </code></pre>
  
  <p>If I click on the <code>Save</code> anchor , I want to remove all three anchor elements as  shown above, without using any <code>id</code>, and replace them with an <code>Edit</code> anchor. I currently have some Javascript code that looks something like this : </p>
  
  <pre><code>function SaveNote(e){
     e.nextSibling.removeNode;
     e.nextSibling.removeNode;
     e.nextSibling.removeNode;
  }
  </code></pre>
  
  <p>Have you any idea regarding this issue?</p>