I guess the following expression would do:
$( $( 'input[value=' + $(this).text() + ']' ) [0] ).remove();
basically you have:
- $(YourExpression) that returns the set,
- $(YourExpression)[0] that gets the first DOM in your set
- $( $(YourExpression)[0] ) that encapsulated said node into a jQuery object
on which you can call remove

Unless I'm mistaken.

2009/3/11 Igor <[email protected]>

>
> try
>
> $('input[value='+$(this).text()+']').filter(function( i ){
>        return i == 0;
> }).remove();
>
> On 11 мар, 08:48, Bas <[email protected]> wrote:
> > if I with the selector $('input[value='+$(this).text()+']') all the
> > objects grab they match with the value and count them i got 3 results.
> >
> > i want to remove the first object in the array from the DOM, i tried
> > already some different thins like:
> >
> > $('input[value='+$(this).text()+']')[0].remove();
> > ($('input[value='+$(this).text()+']')[0]).remove();
> > ($('input[value='+$(this).text()+']'))[0].remove();
> > ($(('input[value='+$(this).text()+']'))[0]).remove();
> > (($('input[value='+$(this).text()+']'))[0]).remove();
> >
> > but no result or an error.
> >
> > who can help me out
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to