Tutorial :Accordion panel with visible option using jQuery


I am very new to jQuery. I want create a an accordion panel using jQuery with a visibility option.

Is it possible to set visible false for an accordion control in jQuery?


This is what you want I understand http://www.learningjquery.com/2007/03/accordion-madness.

Enjoy coding.


See Accordion using jQuery


Use an accordion plugin - or if it's simple enough, roll your own

$('#my-list li').css({ display: none }).click(function() { $(this).slideToggle(500); });  

Check out docs for selectors, css, event handler and effects to learn how this works. It's very basic, but I often only ever need the basics, and it's sure better than incorporating an ~8kb (or more) plugin.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »