I tried the following without success:

<%= check_box_tag 'Filter A', @filter1, :onClick => "$
(this).is(':checked') && $(this.value).addClass('hidden') || $
(this.value).removeClass('hidden');" %>

On 21 Okt., 18:31, Tim Shaffer <[email protected]> wrote:
> Have a look at the documentation for check_box_tag
>
> http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.h...
>
> It specifies that any other keys passed to options will be used as HTML
> attributes. So you can pass your onclick attribute to check_box_tag in the
> options hash.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en.

Reply via email to