Drop down code?

User 1886497 Photo


Registered User
148 posts

Hi guys/gals I have been asked to put together a FAQ page, nothing fancy but been away from web design for almost a year.

What I am looking to do, is probably simple and for some reason my memory is not helping me remember if I have ever done it be four.

All I want to do is say I have a question:- When was the business created?

The user would click that and then the answer would slide down under it like for example:-

When was the business created?
The business was created in 1984.

If the user clicked the question again the answer would go back up hidden so the page would not get to confusing.

I hope that makes sense and thanks to anyone who can help.
Karl Williams.
www.karlwilliams.co.uk
User 187934 Photo


Senior Advisor
20,265 posts
Online Now

There's a few of ways to accomplish this.:)
Accordion comes to mind first.
http://progrower.coffeecup.com/accordian.html
Here's more customization for accordion. http://jqueryui.com/accordion/


Show and hide.
http://progrower.coffeecup.com/showhide.html
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 1886497 Photo


Registered User
148 posts

Thanks Eric...great tips much appreciated.
Karl Williams.
www.karlwilliams.co.uk

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.