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');


On Mar 11, 5:24 am, Bas <basvdlustgr...@gmail.com> 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 jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to