• The Plaid Cow (unregistered) in reply to aikimark

    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)?

  • Brad (unregistered)

    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>
  • Linus (unregistered)

    Wow. That's the sort of code even I can understand is bad. And I'm not a programmer. This is terrible.

Leave a comment on “State Management”

Log In or post as a guest

Replying to comment #:

« Return to Article