jQuery Accordion definition list with multiple description items -
I can not use with definition lists which are many desciption items (dd) There are items.
In the example below, B2, B3 & amp; C1 Show, A1, B1 & A. I like C1.
How do I get it?
jQuery ('dl'). Ardionian ({incident: 'click', active: wrong, animated: "bounslides", header: "dt"}); & Lt; DL & gt; & Lt; DT & gt; & Lt; / Dt & gt; & Lt; Dd & gt; A1 & lt; / Dd> & Lt; DT & gt; B & lt; / Dt & gt; & Lt; Dd & gt; B1 & lt; / Dd> & Lt; Dd & gt; B2 & lt; / Dd> & Lt; Dd & gt; B3 & lt; / Dd> & Lt; DT & gt; C & lt; / Dt & gt; & Lt; Dd & gt; C1 & lt; / Dd> & Lt; Dd & gt; C2 & lt; / Dd> & Lt; / DL & gt;
()
- Demo:
$ (function () {$ ('dt'). ('Click', function (e) {e .preventDefault (); $ (this) .Parent ('dl'). Children ('dd: visible') SlideUp ('slow'); $ (this) .nextUntil ('dt'). Filter (': no (Visible) '). Slidedown (' slow ');});}); Note: If you want multiple sections
open at once, do not use an ampson
- An Empathy does not allow more than one content panel to open at the same time, and so much effort is made if you are looking for a widget that will open more than one content panel If not, do not use it. Usually, instead of a few lines of jQuery, something like this can be written to: Reference:
Hope this help! ;)
Comments
Post a Comment