mattquantic
Programmer
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@)
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@)