Is it possible to generate the menu dynamically through jquery ajax?
I cannot load the menu at the time of page load. I will get the menu structure later through jquery ajax. After the markup data is retrieved through ajax I populated the menu. At that time, how can I ask your menu script to build my menu? Thanks.
You just need to call the SmartMenus initialization code after you have inserted the menu structure in the DOM. Here is a very basic example that gets the menu structure from an external file, prepends it in the body and then the menu is initialized: