- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
The most annoying thing I find about the code is that the states are sorted in alphabetical order by the full name of the state, but shown in the list as just abbreviations. Why else would ME (Maine) appear before MA (Massachusetts)?
Admin
The best way I've found is set it in JavaScript. It's not practical in some enterprise applications to use code to do something like print a state dropdown. Using javascript cached files helps alot.
<select id="abc"> <option val="1">1</option> <option val="1">2</option> </select> <script type="text/javascript">$('abc').value = '<%=Selected_Value%>';</script>Admin
Wow. That's the sort of code even I can understand is bad. And I'm not a programmer. This is terrible.