bellringr Posted August 21, 2004 Posted August 21, 2004 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. Kristi Quote
TCH-Thomas Posted August 21, 2004 Posted August 21, 2004 (edited) This one can do something similar. A site I use it on for f.a.q´s are www.marveassistans.se Its in swedish but scroll down to section "Vanliga frågor", 2nd from bottom and you should be able to click the questions. Edited August 21, 2004 by Jikrantz Quote
Samrc Posted August 21, 2004 Posted August 21, 2004 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 Quote
bellringr Posted August 22, 2004 Author Posted August 22, 2004 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. Thanks! :hug: Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.