try $('input[value='+$(this).text()+']').filter(function( i ){ return i == 0; }).remove();
On 11 мар, 08:48, Bas <basvdlustgr...@gmail.com> 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 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 -~----------~----~----~----~------~----~------~--~---