Multi-lingual menu

I would like to ask about the dropdown menu, the horizontal menu bar, how could I get all the element ID, for example, the id of subpage, as I could not use the .option function to get it.
Thanks