responsive

ready()

  • Available since: 1.2
  • Type: callback function

Callback function to be executed after the accordion is fully loaded.

  • preloadImages enabled - callback function is executed after every image of every slide is loaded (Note: background images are not taken into consideration).
  • preloadImages disabled - Callback function is executed after the plugin is loaded.

Callback creation

Callback function is specified in the configuration section of the plugin.

$('selector').jAccordion({
	ready : function() { 
		//Here goes your code, e.g. alert('Accordion has been succesfully loaded.');
		//You can call any public method using this.method(), e.g. alert(this.getVersion());
	}
});

Demo 1

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

Demo 1 demonstrates how to create your own function to be executed when accordion is ready. Message indicating when accordion is ready is displayed below it.

Loading content...
slide1
slide2
slide3
slide4
slide5

jAccordion by maniacpc, exclusively for CodeCanyon