How to remove prev . prev object? Javascript .prev().remove();
<p>It's like </p>

<pre><code>&lt;input name="fails[]" type="file" size=40 /&gt;&lt;br /&gt;
&lt;textarea name="apraksts[]"&gt;About&lt;/textarea&gt;
&lt;a href="#" onclick="remove(this);return false".....&gt;remove&lt;/a&gt;
</code></pre>

<p>And the javascript:</p>

<pre><code>function remove(obj){
 $(obj).prev('textarea').remove();
 $(obj).prev('input').remove();
 $(obj).remove();
 }
</code></pre>

<p>Why it doesnt remove INPUT(why it doesnt remove two objects)?</p>

<p>Thanks..</p>
