I have a script that I want to write, but I'm not sure how to start, so I'm hoping for someone to point me in the right direction.
I'm dealing with a very large form full of very large <select> boxes. (Some select boxes have as many as 30,000 options.) It's all database-driven and is already completed. I'm only working on improving the appearance and usability of the front end.
I managed to write a small script to make it work with one select box with multiple disabled, but from there it's a big step to 20 or 30 select boxes, each with multiple enabled.
I'm thinking along the lines of getElementsByTagName("select"), then looping through to create an array of the selectedIndex for each select box, then using those values to create the nodes of the <dl>. But I'm not exactly sure how to make it work, and I'm not at all sure how to remove the nodes from the <dl> if they de-select an option.
Can anyone offer any suggestions?