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


 

    How can retrieve id of the parent menu item in the drop-down menus?

Return to Recent Questions


Q: In javascriptcoding I have id of the submenu. How can retrieve id of the parent menu item in the drop-down menus?

A: You can try to use the following function

function dm_ext_getSubmenuParams (menuInd, submenuInd)

Returns submenu parameters in the array:
[submenu_id, items_count, parent_item_id, submenu_level, is_horizontal]

menuInd - index of a menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.

Using this function you can retrieve the parent_item_id.

More info see:
http://deluxe-menu.com/functions-info.html




Return to Recent Questions

Related:
30 Killer Free Bootstrap Image Carousel and Gallery Scripts Mobile-friendly Page Maker  |  15 Recommended Website Makers Arranged by Level Of Popularity  |  36 Top Eye-catching and Free AMP Elements Templates for 2018  |  Fresh CSS Bootstrap Carousel Video Players and Nav Menu Demos  |  Responsive Website Maker  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. fr | Free Bootstrap Template | bootstrap menu | bootstrap button styles | bootstrap website builder