Hi,

> >I'm quite new to Mochikit and have probably a simple
> >question :-)
> >I create a form with DOM, and now I want to check which
> >checkboxes are selected. How can I do this? Can anybody
> >give me an example?
> 
> This should work:
> 
> function checked_checkbox_names(form) {
>     return map(
>         itemgetter("name"),
>         filter(
>             itemgetter("value"),
>             getElementsByTagAndClassName("input", null, form)
>     );
> };

thanks, that's what I need :)
At the beginning, I thought there would be an easier way to do
this with Mochikit. But this is also fairly simple :)

Bye,
Axel

---
"Unix is very user-friendly. It's just picky who its friends are."

PGP-Fingerprint: D7B2 2A64 CCCB 9253 5474  E5F8 5B4B 8FD9 CA6E B770

Reply via email to