Drop Down Menu / Posts /

Populate menu on the fly through AJAX

25
Hi I am trying your drop down menu. It is so easy to use and it looks so good. Thank you!

I have a question. My menu will be initiated on page load. When user select an option, the menu items should be changed to new items dynamically in respond to the selection. Is this possible that the menu will be initiated on page load and then later changed to other mark-up?
Timothy L  5 years ago   viewed: 8442    

1 Answer

1
Yes it is possible.
Just build your menu markup again and then call:
ddmenu.init();
If building menu markup is done through AJAX, call ddmenu.init(); in the AJAX's callback.
John   5 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: