Hello,

I'd like to do something in my site's FAQ section. I'd like people to see the questions, and when clicking them, the answers will appear beneath them. This is done on many sites (I don't have a specific example), but I don't know where to look for such a thing (CSS, JavaScript? etc.) and how to do it.

Any help would be great,

Jonathan

A combination of CSS and JavaScript. I'll leave you the joy of researching this on your own, with just a few guiding hints: imagine that your FAQ Answers are within DIV elements. Investigate the various "display" settings in CSS. You basically want to toggle from one "display" to another when a link is clicked. That should give you enough to go on.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.