Home › Forums › JavaScript › Convert Menu to Dropdown (variation) › Re: Convert Menu to Dropdown (variation)
Hey. :)
The menu is your basic WordPress dynamic menu. In other words just a bunch of nested lists. Like thus:
->
My problems are:
1. Getting the select list more than two levels deep so that the parent/child relationship is properly reflected regarding labels and indents.
2. The script at the moment takes the parent links and transforms them into optgroup labels. Since my parent links actually LINK to pages as well I need a way to clone them so that one link is transformed into an optgroup label while the other stays a working link. Ideally I would like the optgroup labels themselves to remain links, but I’m not sure that’s possible. Select elements are not something I’m terribly familiar with.
Hope you can help. :)