Modify ↓
Ticket #1352 (closed bug: invalid)
[@checked] CSS style selector causes "Object doesn't support this property or method"
| Reported by: | pocketninja | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.1.4 |
| Component: | core | Version: | 1.1.3 |
| Keywords: | input checkbox selector | Cc: | |
| Blocking: | Blocked by: |
Description
When getting all checkboxes contained within a div, which have a checked value, IE 6 and 7 return a vague error when there are checkboxes which haven't had the attribute checked set in the HTML source: "Object doesn't support this property or method"
JS code is: var selected = $('div#divID input[@type=checkbox][@checked]');
Can work around by using $.browser.msie with $('div#divID input[@type=checkbox]') and iterating through each checkbox.
Apologies if I selected the wrong Component for the ticket! =)
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Please close this ticket.
Turns out the issue was caused by the use of a reserved word outside of jQuery itself, in a completely separate .js file.
Strange that the error was reported as being in the jQuery code...
=)