I've got a series of checkboxes within a fieldset (id="projects") from
which I need to extract the checked ones. The docs seem to indicate
that the $$() function can use the :checked pseudo-class from version
1.5.1 and I'm using 1.5.1.1 so that should be all right. I've used
:checked to get the ID of a marked radio button successfully, but I
can't figure out what's going on with the checkboxes. I searched the
group and got some other ideas, but there was one case (in a thread
named "invoke checked") where tobie said :checked should be working but,
for me, it's definately not. Here's the HTML:
<fieldset id="projects">
<input type="checkbox" id="..." value="..." name="..."> - <label
for="...">Some Label</label>
....
</fieldset>
There's N (N >= 1) checkboxes in the fieldset at all times.
I tried to do $$("#projects input:checked") since I know that only
checkboxes are in that fieldset but it's always empty. Has anyone
gotten this working? I assume I must be missunderstanding something
about how :checked works, but the CSS docs seem to clearly indicate that
it's for both radio buttons and checkboxes.
Any thoughts?
- Dash -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---