Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Convert UL menu to dropdown with optgroups

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37922
    jonedwards
    Participant

    Hi

    I realise that another user seems to have posted a similar question due to his / her similar problem, but I am trying to convert my UL menu to a dropdown, with all nested ULs converting to OptGroups – as per the example on https://css-tricks.com/examples/ConvertMenuToDropdown/optgroup.php

    It turns out, that the script used in the example (above) actually doesn’t convert the links in the UL to links in the dropdown (select). The simple, unested example works. The nested one doesn’t.

    Please help?

    Thanks in advance.

    #102312
    wolfcry911
    Participant

    replace the script with this:

    #102315
    jonedwards
    Participant

    Thank you, Wolfcry. Worked like a charm. Going to go through this properly and see what was different…

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.