This is actually an old version of danielmall.com. For the latest and greatest, check out the new site.
 

State (S)election

Every once in a while, I have to build something that sucks. It’s usually nothing more than a bore. Here’s hoping you don’t have to.

This time it was a dropdown list of U.S. States. I did some Google searching and came up with some adequate options. What I didn’t like about these versions is that the option values are state abbreviations. I don’t know about you, but I definitely don’t know all of my state abbreviations, so I’d rather have something that’s more easily interpreted.

So that you (and I) can grab it again anytime it’s needed, I’m posting it here:

And there you have it: an easy-to-use, XHTML-compliant dropdown of U.S. states. There’s no license on this. You don’t have to credit me or anyone for this. Just feel free to use it at your leisure.

Tell your friends.

Comments

Nathan Smith said:

Good idea. I usually end up re-inventing the wheel every time I need a drop-down of state choices.

Posted on July 20, 2007 09:06 AM

Bearskinrug said:

Where's West Dakota?

Posted on July 20, 2007 09:12 AM

Dan Mall said:

Bearskinrug: It’s just above Wyomissing.

Posted on July 20, 2007 10:50 AM

James Asher said:

You might consider putting the abbreviations in the display, e.g. Kansas (KS), perhaps you'll learn all the abbreviations that way :-)

Posted on July 20, 2007 10:53 AM

dale said:

nice work dan.
one thing very off topic (since i didn't know where else to put this) but your contact page is redirecting to your switching.html splash page.

Posted on July 24, 2007 11:59 AM

Dan Mall said:

Thanks Dale. It should be fixed now.

Posted on July 24, 2007 12:11 PM

DanD said:

Depending on the context, I usually prefer to just have a 2 letter input field. A javascript autocomplete would be nice. Especially if I can get it from your website instead of doing it myself. :)

Posted on July 25, 2007 12:53 PM

Andreas said:

sorry if this is a bit off topic but it seems your rss feeds are broken. just wanted to let you know...
cheers.

Posted on July 26, 2007 02:20 AM

Jason Beaird said:

Sorry if this is a bit off topic, but it seems your RSS feeds are now fixed.

Posted on August 2, 2007 05:29 PM

Dan Mall said:

DanD: Not a bad idea. Let me think about that one for a bit… :)

Andreas and Jason: Thanks for confirming those. I was having a whitespace problem in my feed when I installed BirdFeeder for Mint. I think all should be resolved now.

Posted on August 3, 2007 12:11 AM

ACJ said:

This attribute [VALUE] specifies the initial value of the control. If this attribute is not set, the initial value is set to the contents of the OPTION element.

Posted on August 5, 2007 06:10 AM

Jeff Louella said:

I keep snippets of these around. One for States with abbreviations, One with full names, and One with every country. This way it is just copy and paste.

Posted on August 6, 2007 12:09 PM

jharr said:

Dan, thanks - wonderful snippet to have.

Posted on August 7, 2007 09:04 AM

JD Graffam said:

Yes, it's a nice site indeed. Stupid spam. Good to know where to go to find my dropdowns from now on. The CSS Guy got sick of googling for the IE7 hack, so he posted it on his blog so he could readily access it. It's *+ html. Now it's on your blog, too.

Posted on September 2, 2007 01:48 AM

Sorry: comments are closed.