4 ms·
Using jQuery, you could get each option from the Select, and make it a div/span (or more commonly, a UL for drop downs) for this example include jquery and sup
by izak30 18y ago
Using jQuery, you could get each option from the Select, and make it a div/span (or more commonly, a UL for drop downs)
for this example include jquery and superfish libraries
//Insert a new node under select id
$("#SelectId").after("<ul id='newUl'></ul>");
$("#SelectId").hide();
$("#SelectId option").each(function(){$("#newUl").append("<li>"+this.html()+"</li>");});
//Now you have made a UL from a Select box, so use something like superfish to make it a dropdown
$("#newUl").superfish();