The Web Development Blog has moved to http://www.heidicool.com/blog/. Please visit me there to read the latest entries and to update your bookmarks and RSS feeds.
February 10, 2007
More DW Snippets - 50 states form select in two versions
In a previous entry I wrote about snippets in Dreamweaver. This is simply a method for saving small bits of code that you can use and reuse. There's a panel in DW where you save these, and I guess whether or not you use this particular panel, chances are you have a place to store little pieces of code like this, that you refer to on occasion. I know I do.
So, here are another couple of bits that you can file away somewhere. They can both be used in forms, possibly for registrations or gathering data in a survey. They are the form select dropdowns for all 50 states, done in two ways; one with the full name and the other with just the abbreviations. Rather than include the code on the page, I'll just show you what it looks like, and you can go in, 'view source' and take whichever one you want. Take both; when you need them you'll be happy that you have them put away in your bag of tricks.
While you're at it, save it as a snippet in DW, and you won't even have to go looking for it!
While the two versions look different onscreen, they both pass the value as a standard two character postal abbreviation.
Here is the 50 states dropdown with abbreviations:
Here is the 50 state dropdown with the states full name included.
I have several more that I'll be posting here, let me know if you find one that's useful.
Posted by: Kevin Adams February 10, 2007 11:11 AM | Category: Kevin's Stuff
Trackbacks
Trackback URL for this entry is: More DW Snippets - 50 states form select in two versionsPost a comment
Posted by: kla3 (Kevin Adams) February 10, 2007 11:11 AM | Comments (2) | Trackback
http://blog.case.edu/webdev/2007/02/10/more_dw_snippets_50_states_form_select_in_two_versions.html
Office of Marketing and Communications
http://www.case.edu/univrel/marcomm/
http://blog.case.edu/webdev/
216.368.4440



Stumble It!
Comments
Thanks! This was definitely a helpful timesaver :)
-Don
I was just about to hand-type those in, then figured I'd look around first. Thank you very much - super handy!
- John