what am i doing WRONG!!!!!!
<%= f.check_box :monday, :on_click => visual_effect('toggle', 'mondaydiv', 'blind') %>
what am i doing WRONG!!!!!!
<%= f.check_box :monday, :on_click => visual_effect('toggle', 'mondaydiv', 'blind') %>
It’s :onclick, not :on_click.
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') %>
<input checked="checked" id="avaliblity_monday" name="avaliblity[monday]" onclick="new Effect.Toggle("mondaydiv",{blind:});" type="checkbox" value="1" />
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.