remove parent of parent div
<pre><code>&lt;div class="row-fluid"&gt;
    &lt;div class="span12 clearfix"&gt;
        &lt;div class="span1"&gt;{1}&lt;/div&gt;
        &lt;div class="span3"&gt;{2}&lt;/div&gt;
        &lt;div class="span7"&gt;&lt;input type="text" name="image_url[]" class="text required img_url" value="{0}" /&gt;&lt;/div&gt;
        &lt;div class="span1"&gt;&lt;a href="#" class="remove_img"&gt;remove&lt;/a&gt;&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;div class="row-fluid"&gt;
    &lt;div class="span12 clearfix"&gt;
        &lt;div class="span1"&gt;{1}&lt;/div&gt;
        &lt;div class="span3"&gt;{2}&lt;/div&gt;
        &lt;div class="span7"&gt;&lt;input type="text" name="image_url[]" class="text required img_url" value="{0}" /&gt;&lt;/div&gt;
        &lt;div class="span1"&gt;&lt;a href="#" class="remove_img"&gt;remove&lt;/a&gt;&lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>When I click remove link,I want remove it main container div(row-fluid).</p>

<p>I tried but it doesn't work.</p>

<pre><code>$(this).closest('div').closest('div').closest('div').remove();
</code></pre>
