Re: [jQuery] Selector fails and works

2009-12-08 Thread brian
I believe this is the problem: input[type="radio"][checked=true] The correct value for the "checked" attribute is "checked", not "true" (don't ask me why; I think it's a stinker), so jQuery comes up empty-handed. Whereas the other way you're approaching this: if (this.checked) ... works becaus

[jQuery] Selector fails and works

2009-12-07 Thread Beardsley Ruml
Sorry that this take a while to demonstrate but it's a complete puzzle (to me)! I would like to determine whether there are any checked radio buttons within the "selected_courses" in the following HTML: [ 5 more radio buttons] [ 2 more courses ] When t