Is there any alternative to jQuery .after() function
<p>I am trying to convert my jQuery script into javascript. I have a problem there..</p>

<p>I have a script that creates a node </p>

<pre><code>var new_node = document.createElement("div");
      new_node.className="tooltip";
      new_node.innerHTML = html;
      alert(new_node.className);
</code></pre>

<p>When i do this</p>

<pre><code>jQuery(link).after(new_node);
</code></pre>

<p>It works fine. But I want to do it javascript way. I have tried using appendChild function but it gives some strange results.</p>

<p>Please help me out with this.</p>
