Awesome. Your nested accordion is very nice. Thanks for all your help.
Regards, Akbar On Fri, Nov 13, 2009 at 6:58 PM, Adriana <adipa...@yahoo.com> wrote: > Hello Akbar, > > No, it does not require any PHP or other server-side code. > > If you use > http://adipalaz.awardspace.com/experiments/jquery/nested_accordion.html > just place the script "nested_accordion.js" in some directory of your > site, for example in the directory 'scripts'. > Add the following code inside the HEAD of your HTML document like > this: > > <head> > ... > <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ > libs/jquery/1.3/jquery.min.js<http://ajax.googleapis.com/ajax/%0Alibs/jquery/1.3/jquery.min.js> > "></script> > <script type="text/javascript" src="scripts/nested_accordion.js"></ > script> > <script type="text/javascript"> > $(function() { > $('#some-id').accordion(); > }); > </script> > ... > </head> > > And in the BODY: > > <body> > <div id="some-id"> > <ul class="accordion"> > <li> Item 1 > <ul> > <li> Sub 1.1 > <ul> > <li> Sub 1.1.1 </li> > ... > </ul> > </li> > ... > </ul> > </li> > ... > </ul> > </div> > </body> > > As it is explained in > http://adipalaz.awardspace.com/experiments/jquery/nested_accordion.html, > the script can be used as well with nested <div>-s. > > Be sure to add the class name 'accordion' to the root tag of your > accordion - <ul class="accordion"> or <div class="accordion">. > > Regards, > Adriana > > On Nov 13, 8:59 pm, Akbar Ehsan <akbareh...@gmail.com> wrote: > > Hello Adriana, > > > > Thanks, > > > > Does it require PHP? I have no PHP skills. > > > > Regards, > > > > Akbar > > > > On Thu, Nov 12, 2009 at 9:12 PM, Adriana <adipa...@yahoo.com> wrote: > > > Hello Akbar, > > > > > Here are two links that provide examples of nested accordions: > > > > >http://adipalaz.awardspace.com/experiments/jquery/nested_accordion.html > > >http://blog.evaria.com/wp-content/themes/blogvaria/jquery/index-multi. > .. > > > > > Regards, > > > Adriana > > > > >