I believe I found a bug (if I'm doing it right) with the $$() function
when trying to retrieve a list of all checkboxes of a certain class
with the "checked" property.  Here's what I do:

STEP 1:  I add the class of "someCheckboxClass" to each checkbox I
wish to search for.  Some are checked; some are not.

        <input id="checkbox1" type="checkbox" class="someCheckboxClass" />
        <input id="checkbox2" type="checkbox" class="someCheckboxClass"
checked />
        <input id="checkbox3" type="checkbox" class="someCheckboxClass"
checked="checked" />

STEP 2:  I search for all inputs with the class == "someCheckboxClass"
using the $$() function as such:

        var theList = $$('input.someCheckboxClass[checked]');

                function(element, index)
                        alert(element.outerHTML);//shows whether or not the 
attribute exists


The list returns ALL checkboxes of class "someCheckboxClass",
irregardless of them having the checked attribute or not.  According
to the Prototype 1.5 API (PDF), this should not be the case.  If I AM
doing this right, then I believe this is a bug.  Otherwise, please


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 

Reply via email to