gimler wrote:
> hello,
>
> i will simple check/uncheck all checkboxes.
>
> but my code doen´t work ;(
> function checked(element)
> {
> element.checked = !element.checked;
> return element;
> }
> function select()
> {
> var checkboxes = $('articles').getInputs('checkbox');
> checkboxes.invoke('checked'); not working
> }
I think you're not understanding what invoke() does. It invokes the same
"method" on each object in the Enumerable. Your checked() function is not a
method on a checkbox HTML form element. It's just a function.
--
Michael Peters
Developer
Plus Three, LP
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---