How can I delete the n-th element in a list with javascsript
<p>I know how to delete all elements from a list. I don't know how to delete just one item. Let's say I want to delete the 3th list item <li> of an unorder list . lets say I have the following:</p>

<pre><code>          &lt;ul id="parent"&gt;
    &lt;li&gt;
      &lt;label&gt;this is the fist item&lt;/label&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;label&gt;this is the second item&lt;/label&gt;
    &lt;/li&gt;
    &lt;li&gt;
       &lt;label&gt;this is the third item&lt;/label&gt;
    &lt;/li&gt;
    &lt;li&gt;
        &lt;label&gt;this is the fourth item&lt;/label&gt;
    &lt;/li&gt;
          &lt;/ul&gt;
</code></pre>

<p>its eassy to delete the fist child or the last child. The list I am building gets built dynamicaly and it will be nice if I can delete the n-th child. It will be nice if I could do something like   document.getElementById("someElemet").delete</p>
