I am trying to build an FAQ where the question is visible and you click to get the answer. I have Ditto setup to generate a div around the answer with a class atribute (all the divs use the same attribute name). I figured I could get MooTools to hide and show the class, but it seems to only want an ID for the divs.
Does anyone know if it’s possible to get MooTools to hide/show individual class items on a page when there are more than one?
Or is there another way to go about this?
I use this plugin for jQuery to do FAQs and FAQ-like things:
http://bassistance.de/jquery-plugins/jquery-plugin-accordion/
I’m sure there’s something similar for mootools if you’d prefer that.
Well I had thought it would be best to use MooTools since it’s already included, but I can’t figure out how to use it with an unknown number of divs (Q/A). The MooTools fx.slide command seems to require a unique ID for each one.
You can certainly do this in MooTools as well:
http://demos.mootools.net/Accordion