(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    I now wish to dynamically change the drop down menu in html parameters.

Return to Recent Questions


Q: I now wish to dynamically change the drop down menu in html parameters. For this, I have set the following parameters:

// Dynamic Menu
var dynamic=1;

1.Please send me the reference link for the dynamic menu commands available (for javascript).

2.Now AFTER initialization, dm_init();, I wish to change the default var itemTarget="Sub_Main";

How do I do that??

A: You can find more info about API functions here:
http://deluxe-menu.com/functions-info.html

Unfortunately it is not possible to change drop down menu in html parameters (var ...) after menu initialization.
So, there is no way to change
var itemTarget="Sub_Main";

But you can change target for each item individually (target parameter in menuItems) using dm_ext_changeItem function.

var menuItems = [
[text, link, iconNormal, iconOver, tip, target, itemStyleInd, submenuStyleInd, jsFilename],
[text, link, iconNormal, iconOver, tip, target, itemStyleInd, submenuStyleInd, jsFilename],
...
];






Return to Recent Questions

Related:
Bootstrap Multiselect Option Bootstrap Tabs Styles  |  Bootstrap Toggle Tabs  |  Bootstrap Panel Body  |  Bootstrap Select Placeholder  |  Bootstrap Media queries Example  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Best AI Website Builder | Free AI Website Builder | AI Website Builder | Website Generator AI | AI web design generator