I’m building a form for a client and they’ve requested a map of the city to let visitors visually pick their location, and have that link to the City: Dropdown/Select area of the Form.
Here’s the clients old, archaic & disgusting website showcasing what they want done, seriously though, it’s terrible.
http://www3.telus.net/russellsrubbish/order_form.htm
I was looking at this Hidden Form Value Change and I’m unsure if this would be pushing in the right direction?
If I failed to explain myself properly I apologize, I’m pretty novice when it comes to jQuery.
To make this work i would make a background sprite with a map and use image maps.
Just use jquery to react on clicking one of the hotspots and change the selected index in your select box.
—————————————- EDIT – Working example ——————————
Heres a working example i made for you: Example
You can click 2 regions in the netherlands on the map, “noord-brabant” and “gelderland”.
HTML:
Css:
JS:
So what i actually did is make a sprite with the background images for the map.
Use a transparent img so we can add our image maps and make hovers on the area’s change a class based upon the alt attribute. You just need to add styling for all regions and make the sprite move.
Hope this helps 🙂