开发者

Accordion panel with visible option using jQuery

I am very new to jQuery. I want cre开发者_如何学Pythonate 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜