Displaying 1 result from an estimated 1 matches for "temporary_bar_details".
2007 Jan 11
2
checkbox to toggle div
...<%= check_box(''foo'',''temporary_bar'',{:onclick =>
"Element.toggle(''temp_bar''); return false;"}, 1, nil)%>
<div id="temp_bar" style="display:none;">
<%= text_field ''foo'', ''temporary_bar_details'' %>
</div>
The div toggles fine when clicking on the checkbox but it doesn''t stay
checked. Any help is appreciated.
H
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:...