Grow your CSS skills. Land your dream job.

Convert UL menu to dropdown with optgroups

  • # May 4, 2012 at 9:55 am

    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 http://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.

    # May 4, 2012 at 10:59 am

    replace the script with this:

    # May 4, 2012 at 11:16 am

    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)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".