Click to See Complete Forum and Search --> : Link to hide/unhide text


mads
03-16-2003, 08:00 AM
I would like to know how i could write a script to hide and unhide text.

What I want is to have a link on the top of the page, and under it some text which should be hidden by default, but when the link is clicked, it should appear. When the link is clicked again, the text should dissappear.

thanks

khalidali63
03-16-2003, 08:04 AM
Take a look at the code here,
there is very little you need to do to adapt to your need

http://68.145.35.86/skills/javascripts/ShowHideFormElement.html

Cheers

Khalid