Hi guys,

I have this:

if(!element.checked){
 
element.next('div').select('input[type=checkbox]').invoke('writeAttribute',
'checked', false);
}

Works once maybe, randomly, mostly not at all.

This works:

if(!element.checked){
 
element.next('div').select('input[type=checkbox]').each(function(el){
        el.checked = false;
    });
}

I suspect I am using wirteAttribute wrongly, what say yall.

- John-David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to