Create accordion content on the fly

Create accordion content on the fly


Hi all,
I am quite new to jquery. I have managed to create accordion in tabs.
However, I would like to load the contents of each accordion only when
they are selected. The reason for this choice of implementation is
simple. My accordion menu may be as long as in the hundreds or
thousands. Therefore, loading all the contents at once will take lots
of time. Furthermore, there is not a need to lot of of the contents as
user is very unlikely to view each and everyone of it.
Can anyone post a sample code here on how I can create accordion menu
to load the content of the part only when it is selected? I've search
high and low for any tutorial but I have yet to find any. Meantime,
I'll keep trying to work on it.
thank you,
Wai Thing