HELP! check_box visual_effect

what am i doing WRONG!!!

<%= f.check_box :monday, :on_click => visual_effect(‘toggle’,
‘mondaydiv’, ‘blind’) %>

It’s :onclick, not :on_click.

On Jan 8, 2008 8:01 AM, spokra [email protected] wrote:

what am i doing WRONG!!!

<%= f.check_box :monday, :on_click => visual_effect(‘toggle’,
‘mondaydiv’, ‘blind’) %>

–
Ryan B.

Feel free to add me to MSN and/or GTalk as this email.

still doesn;t work… are The " screwing it up?

this is what I have and gets renedered

<%= f.check_box :monday, :onclick => visual_effect(:toggle,
:mondaydiv, ‘blind’) %>

figured it out…

<%= f.check_box :monday, :onclick => visual_effect(:toggle_appear,
‘mondaydiv’) %>

Just use visual_effect(:toggle) instead. Set the style on the element to
show by default if that’s what you want.

Is there a way to set the initial state?
i.e. toggle off vs toggle on?
(I looked at the options - can’t find anything useful).

thanks.