This is a migrated thread and some comments may be shown as answers.

Get subitems in js code

1 Answer 7 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 08 Jul 2013, 09:54 AM
Hi guys

I am trying to access a menu item in javascript using get_items but I am getting the parent items only. The subitems are not listed. What can I do?
Please help
Joseph

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 08 Jul 2013, 10:26 AM
Hi Joseph,

Try menu1.get_allItems() instead of get_items() which return only the root items.

Thanks,
Shinu.
Tags
Menu
Asked by
Joseph
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or