Bob,
What is to be done about any other html between the Q: and A: for example what if I have an anchored title for each letter of an alphabet in a glossary. Like so:
A_
Apple:
Apples are good for you.
Aardvark:
Aardvarks are funny looking.
B_
Basket:
Baskets are good on picnics.
Bird:
Birds can fly.
and so on..
is there anything that can be done to accommodate that type of structure? I’m willing to go in and hand code all the anchors before hand, but the snippet is swallowing up my anchors. It works fantastic on FAQs! I modified it a little bit to use mootools’ sliding effect and it looks awesome. However, if you split up terms alphabetically like I have and insert Anchors then it swallows up the html in between questions.
Here’s my html:
<a name="a">A</a>
<h3 class="toggler">Apples</h3>
<div class="element">Apples are good to eat.</div>
Any thoughts?