I have 2 divs:

<div id="div1">  <%= link_to_function("Show div2",
"Element.toggle('div2')") %> </div>
<div id="div2">  <%= link_to_function("Show div1",
"Element.toggle('div1')") %> </div>

I want, when I click link: "Show div2" it hide div1 and show div2,
when i click "Show div1" it hide div2 and show div1

How can i do it?
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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