Ticket #5179 (closed defect: fixed)
dojo.query :selected does not work
| Reported by: | guest | Owned by: | alex |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | General | Version: | 1.0 |
| Severity: | normal | Keywords: | query checked |
| Cc: |
Description (last modified by alex) (diff)
The following code returns EVERY input element within a form not just the input elements that are checked (which would make them type=checkbox too)
Accourding to the Dojo documentation HERE it is suppose to return only the Checked elements.
var form = dojo.byId( 'formID' ); var results = dojo.query( "input:checked", form );
I also tried this:
var form = dojo.byId( 'formID' ); var results = dojo.query( "input[type=checkbox][checked]", form );
But it did not return any elements.
Change History
Note: See
TracTickets for help on using
tickets.