javascript replacechild not working
<p>I know this is an easy concept, but I just can't seem to get it working. Any ideas why? Here is my code:</p>

<pre><code>var oldChild = document.getElementById("sbX1");
var newChild = document.createElement("div");
newChild.id= "sbYY1";
oldChild.replaceChild(newChild, oldChild);
</code></pre>
