troubleshooting Question

Covert unorderd list with checkboxes to dropdown with checkboxes

Avatar of Scott Baldridge
Scott Baldridge asked on
8 Comments1 Solution38 ViewsLast Modified:
Hello, I have an ul that contains checkboxes and I would like to have it converted to a dropdown with checkboxes and labels using Jquery or JavaScript.  

How can this be accomplished if my ul looks like this?

<ul id="SourceIndustries">
    <li class="listboxChecked">
        <input type="checkbox" name="Industry" value="1" id="industry_1">&nbsp;
        <label for="industry_1">Advertising</label>
        <input type="checkbox" name="Industry" value="2" id="industry_2">&nbsp;
        <label for="industry_2">Agriculture</label>
        <input type="checkbox" name="Industry" value="3" id="industry_3">&nbsp;
        <label for="industry_3">Banking / Finance / Investments</label>
I Design & Develop Software

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros