removing a div and focusing input field next to it
<p>my html is like this</p>

<pre><code>&lt;td&gt;
  &lt;input type="text" class="textinput" id="file_descr_0" name="file_descr[0]" value='' /&gt;
  &lt;div id="mean" onClick="removeElement('mean');"&gt;{L_FileDescr}&lt;/div&gt;
&lt;/td&gt;
</code></pre>

<p>and to remove the div i am using this function</p>

<pre><code>function removeElement(div){ 
    var d2 = document.getElementById(div); 
    var d1 = d2.parentNode;
    d1.removeChild(d2); 
}
</code></pre>

<p>I wanted to know how I can make this removing element dynamic because there are lot of divs which are to be removed and because of this function i will have to give each one a id.</p>

<p>and also after removing how can i focus the input field.</p>

<p>Thank You.</p>
