below specified working fine for me but i want to know is there any other best way to do it
$(this).parents('form:first')
.siblings('.div-action,.single-field').show()
.siblings('form:first').remove()
Like i tried below specified one not helpful
$(this).parents('form:first')
.remove(function(){ $('this')
.siblings('.div-action,.single-field').show()});
I know below specified way too but i want to know the best way to do this
var temp = $(this).parents('form:first')
temp.siblings('.div-action,.single-field').show()
temp.remove()
I want to do it in one line only
The solution is simple, one line, with the use of
.end():Indenting so you can see what I did:
View the example on JSFiddle http://jsfiddle.net/kuroir/U6A9h/