responsive

onReady

  • Available since: v1.2
  • Changed in: v1.2.6
  • Type: event

Triggers after the accordion has been fully loaded.

  • if option preloadImages enabled - triggers when all images inside slides are loaded (Note: background images are not taken into consideration).
  • if option preloadImages disabled - triggers when accordion is initialized.

Callback creation

Callback is attached to the event in the configuration section of the plugin.

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

Demo 1

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

Changelog

version 1.2.6

Name of the event has been changed from ready to onReady; thus ready is deprecated.


jAccordion by maniacpc, exclusively for CodeCanyon