finding or setting a menu item's id

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
kcraft
Beginner
Beginner
Posts: 1
Joined: Wed Sep 19, 2007 7:53 pm

finding or setting a menu item's id

Post by kcraft »

I need to retrieve the id of a menu item in order to read some information about it (such as its position). I tried setting the "id" property like this:

Code: Select all

aI("id=test;text=blah blah;");
...then I executed this code:

Code: Select all

var el = document.getElementById("test");
alert(el);
The result was "null", so this method doesn't seem to work.

How can I set or get a menu item's id?
luisraposo
Advanced
Advanced
Posts: 20
Joined: Wed Aug 29, 2007 2:49 pm

Re: finding or setting a menu item's id

Post by luisraposo »

hi,

check http://milonic.com/menu_methods.php

Code: Select all

integer getMenuByName ( string Menu_Name )
luis
Post Reply