<div class="row-fluid">
<div class="span12 clearfix">
<div class="span1">{1}</div>
<div class="span3">{2}</div>
<div class="span7"><input type="text" name="image_url[]" class="text required img_url" value="{0}" /></div>
<div class="span1"><a href="#" class="remove_img">remove</a></div>
</div>
</div>
<div class="row-fluid">
<div class="span12 clearfix">
<div class="span1">{1}</div>
<div class="span3">{2}</div>
<div class="span7"><input type="text" name="image_url[]" class="text required img_url" value="{0}" /></div>
<div class="span1"><a href="#" class="remove_img">remove</a></div>
</div>
</div>
当我单击删除链接时,我想删除它的主容器 div(row-fluid)。
我试过了,但它不起作用。
$(this).closest('div').closest('div').closest('div').remove();