responsive

$accordion

  • Available since: 1.2
  • Type: public variable

Public variable which stores jQuery object of the accordion.

Variable accessing

1) Variable can be accessed inside every callback function (as demonstrated in demo 1):

this.$accordion;

2) In case there is only one element matching the selector, variable can be accessed anywhere in your code (as demonstrated in demo 2):

$('selector').data('jAccordion').$accordion;

3) In case there are more elements matching the selector, variable can be accessed anywhere in your code (eq(index) specifies index of accordion instace):

$('selector').eq(index).data('jAccordion').$accordion;

Demo 1

  • Source files of this demo are located in: Examples\APIaccordionDemo1

Demo 1 demonstrates how to access the described variable inside callback function ready() (the protocol is the same for all callback functions). Preloader (which is placed inside accordion) is removed after accordion is fully loaded and message indicating it is displayed below accordion.

Loading content...
slide1
slide2
slide3
slide4
slide5

Demo 2

  • Source files of this demo are located in: Examples\APIaccordionDemo2

Demo 2 demonstrates how to access the described variable anywhere in your code.

Loading content...
slide1
slide2
slide3
slide4
slide5

jAccordion by maniacpc, exclusively for CodeCanyon