search for: text_field_to_toggle

Displaying 1 result from an estimated 1 matches for "text_field_to_toggle".

2006 Jul 18
2
Turn element hidden by default (ajax question)
...uestion please let me know). Ajax question I have a checkbox that toggles the visibility of another element (a text field) with the code: --- <p><label for="checkbox">Appear!</label> <%= check_box :object_name, :method, :onClick => "Element.toggle(''text_field_to_toggle'')" %> <%= text_field :object_name, :method, :disabled => ''true'' %> </p> --- the text field is: --- <%= text_field :object_name, :text_field_to_toggle %></p> -- It works well, the only problem is that it HIDES the text field which is in...