PDA

View Full Version : US State Selection by map



vanbao
12-11-2007, 05:41 AM
I currently have a intake form containing a field for a US state. I use the following codes for that selection. However, the list is quite long. I am trying to find a script that will allow me to have a map of the US next to this input field. When a visitor click on a state, the script will enter the corresponding state name in the input form. Similiar to a date picker script like this one but instead of a calendar, an image map pops up.

http://www.nsftools.com/tips/DatePickerTest.htm

Does any one know if there is such a script like that out there. Thank you.
<select size="1"
name="State">
<option value="">All States</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="DC">District of Columbia</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="HI">Hawaii</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="PR">Puerto Rico</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select>

vanbao
12-12-2007, 06:26 AM
Any one out there have any ideas. Please help.

Thank you.

boogyman
12-12-2007, 01:53 PM
i didnt really look too much at it, but look at http://www.freevbcode.com/ShowCode.asp?ID=1854

if that doesnt work try some google searches? USA image map ? for terms, maybe?

gharshg
12-13-2007, 09:47 AM
Hi,
I have a solution for your requirement. [email hidden]

Thanks

Removed e-mail

tech_support
12-13-2007, 09:54 AM
Post your solution here, for the benefit of the community.