Tutorial :Accordion panel with visible option using jQuery



Question:

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?


Solution:1

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

Enjoy coding.


Solution:2

See Accordion using jQuery


Solution:3

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
Previous
Next Post »