looks at this example var itemlist = $(".list");
itemlist.each(function(i) { // in this line notice i declared a variable i within the brackets you forget to do this. itemlist.eq(i).remove(); // .eq(i). is the magic here. }); On Wed, Oct 21, 2009 at 8:41 AM, jan <jnroche.5...@gmail.com> wrote: > > Hi! > > Sorry to flood please disregard my previous attemp to post for this > same issue. This is the real post. > > I have this code within the ready function: > > > $("form.uplform").live('submit', function(){ > if($(this).attr('validate')=='true'){ > $("#testform>input").each(function(){ > alert($(this).attr('name')); > }); > } > return false; > > }); > > > I want to be able to alert all the names of the input boxes belonging > to form.uplform but it does not seem to like it. Although I am able to > get past the validate==true statement but the each is not iterating. > > Please tell me anything i am doing wrong. > > Thanks in advance! >