You could maybe do something less dependent on the local structure, using up():
$$('input[type="checkbox"]:checked').each(function(e){ e.up('tr').morph('checked'); }); Walter On Jul 9, 2009, at 9:11 AM, ColinFine wrote: > > > > On Jul 6, 3:00 pm, Celso <cels...@gmail.com> wrote: >> Why this only works in Firefox and not in IE? >> >> $$('input').each(function(e){ >> if(e.type == 'checkbox' && e.checked) >> $('tr-'+e.id).morph('checked'); >> }); >> >> Thanks, >> Celso > > *Please* don't say "doesn't work" or equivalent. That tells us > nothing. What actually happens? > > That code looks OK to me, but are you sure that the 'tr'+id id's exist > and are unique? > > Colin > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---