This is more nicer (less confusions with parenthesis):
$('input[value='+$(this).text()+']').eq(0).remove();
Also, this has the advantage to preserve the query in the chain:
$('input[value='+$(this).text()+']')
.eq(0)
.remove()
.end()
.slice(1)
.addClass('.survived');
Also this would not try to remove the document in case the query
doesn't returns any element.
On Mar 11, 5:24 am, Bas <[email protected]> wrote:
> this was the correct one
>
> $($('input[value='+$(this).text()+']')[0]).remove();
>
> thank you guys
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---