Jump to content

Looking For Javascript Toggle


bellringr
 Share

Recommended Posts

I'm trying to find the code for a javascript toggle that I can use in an FAQ. What I want to do is have one row be the question and when one clicks on it, it toggles on the row below it with the answer. Then when one clicks on it again, it hides the answer.

 

We have some pages at work that use this but I don't have access to them on the weekend. I've googled for it but haven't found the same thing.

 

If anyone can copy the code for me or point me to a site that has it, I would greatly appreciate it. :unsure:

 

Kristi

Link to comment
Share on other sites

Here's one that works in IE and Mozilla Firebird:

*ttp://pootato.org/others/dhtml_showhide_text.php

 

 

These work in IE but don't seem to work in Mozilla firebird:

*ttp://javascriptkit.com/script/cut148.shtml[/url]

A variation used on this page:

*ttp://www.jsr.communitech.net/expheaders.htm[/url]

 

Not javascript, but just plain HTML to show/hide text:

*ttp://www.jmek.net/html_help/05_dhtml/05_showHide.html[/url]

 

 

Sites are not to TCH hosted sites so the h has been removed to disable links

-Samantha

Link to comment
Share on other sites

This one can do something similar.  :)

Perfect! This is just what I needed, plus it has some extra CSS bells and whistles that make it look even nicer! So far I have been able to successfully tweak it with my VERY limited CSS and Java knowledge to look how I want. :dance:

 

Thanks! :hug:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...