I would like to copy the FAQ "expanding item" functionality into a new content type.

The content type would be very simple: A single clickable question, with the answer in a collapsible field.

I'm essentially making a flashcard, with the answer expandable on-click.

This might just be a simple html function, but I'm not sure how to do it.

I would appreciate any suggestions. Simple is, of course, preferred.

Thanks, as always.

Comments

Road Runner’s picture

There is a FAQ module that does this. Also there is accordion view module that might help you if you need to create your own custom content type.