DEMO 1 DEMO 2 DEMO 3 DEMO 4 DEMO 5 DEMO 6 DEMO 7

Demo 7: Build Menu After Page Load

 

 

 

   

 

 

Menucool Accordion Menu has a built-in function, init([id]), that can be used to init the menu after page load if the menu markup is not available during page load.

This demo provides an example of creating the accordion menu dynamically through a jQuery Ajax request.

Clicking on the buttons above will trigger a jQuery Ajax request to retrieve the menu markup. The callback function of the Ajax will populate the menu HTML, and then amenu.init() is called to initiate the menu.

For details please visit Build Menu After Page Load