On Mar 10, 9:48 pm, 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();
When you do [0] you get the first DOM element, which is no longer a jQuery object, so it doesn't have the remove() method. Instead, you want this: $('input[value='+$(this).text()+']:first').remove(); Matt Kruse --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---