Ok, the title is a bit confusing, but here’s my predicament. I’ve made a web app to track UPS packages internally at work. Currently, you input the tracking number and then select the city it was shipped from. All tracking numbers from an account start with the same X amount of numbers. So if someone entered “1Z8473…” into one input, “Houston, TX” would automatically be entered into the next input. Is this a difficult thing to pull off? Where would I begin?
Share
You could monitor one input for a change, then depending on it’s contents matching a specified value, updating the second one.
Trivial example:
The above example uses a simple
ifblock to do the matching. As others have posted here, you can send this value to a server side script that does the geolocation for your required areas. So replacing theifabove with something like:and on your server, in
geocoder_on_your_site.php: