I have 2 divs:
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?
I have 2 divs:
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?
On Dec 26, 5:14 pm, Gi Ga [email protected] wrote:
How can i do it?
just make your call to link_to function toggle both divs - you aren’t
limited to a single javascript statement.
Fred
Frederick C. wrote:
On Dec 26, 5:14�pm, Gi Ga [email protected] wrote:
How can i do it?
just make your call to link_to function toggle both divs - you aren’t
limited to a single javascript statement.Fred
I can’t make it work
By default div2 is hidden:
On 26 Dec 2008, at 19:32, Gi Ga wrote:
I can’t make it work
Just make two calls to Element.toggle
Fred
Sample:
Element.toggle(‘div1’); Element.toggle(‘div2’);
–
Shiv
On Sat, Dec 27, 2008 at 1:29 PM, Gi Ga
[email protected]wrote:
Sample?
Posted via http://www.ruby-forum.com/.
–
Henny Youngman - “If at first you don’t succeed… so much for
skydiving.”
Sample?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs