before remove object want to do some functionality over its siblings in jquery
<p>below specified working fine for me but i want to know is there any other best way to do it </p>

<pre><code>$(this).parents('form:first')
.siblings('.div-action,.single-field').show()
.siblings('form:first').remove()
</code></pre>

<p>Like i tried below specified one not helpful</p>

<pre><code>$(this).parents('form:first')
.remove(function(){ $('this')
.siblings('.div-action,.single-field').show()});   
</code></pre>

<p>I know below specified way too but i want to know the best way to do this</p>

<pre><code> var temp = $(this).parents('form:first')
temp.siblings('.div-action,.single-field').show()
temp.remove()
</code></pre>

<p>I want to do it in one line only</p>
