[@checked] CSS style selector causes "Object doesn't support this property or method"
|Reported by:||pocketninja||Owned by:|
|Keywords:||input checkbox selector||Cc:|
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! =)