Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically reorder a multiple select dropdown 1

Status
Not open for further replies.

mattquantic

Programmer
Joined
Mar 28, 2004
Messages
196
Location
GB
Hi. I am trying to write a script that can loop through the contents of a drop down list and reorder it alphabetically.

I can do the looping through. But I don't understand how I can filter it.

It's really easy in server side scripting, but I can't figure it in JS.

Do I loop through the existing dropdown and remove all the elements, then filter, then repopulate?

Can anyone help? Or show me an example of reordering an existing dropdown?

M@)

M@)
 
Wow - that certainly answered my question and then some!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top