|
Firstly, great plugin. Excellent work. Anyway, i have a question: I have a page that contains a menu. Clicking on a menu item, i want to open a new container. My menu is called #left. here is my javascript:
If i click on the menu #left the first time. Nothing happens. Then with every subsequent click, a new container div opens (which is what i want), but how do i get it open on the first click? I am assuming i have to initialise and "buildContainers" first. I have tried to do this using the jquery:
}); but it does not work. Can someone please help me out??? thanks |
|
i have solved it myself. Just change the order of the .append to above the buildContainers thats it. |
|
Hi, it happens because you are initializing the container before it is written in the page; You can either insert the container before the init:
or create and init your container as closed on page load and use the mb_open() method on click event: HTML:
JAVASCRIPT:
Bye, Matteo |


