Hey guys,
Here is what I am trying to do:
I would like for a visitor to enter a zip code, and when zip code is entered, a select field would be populated listing all the cities for the corresponding zip.
I already have everything set up and working other than that. Here is the select field that needs the zip code passed to it:
<select name="city" id="city">
<option><?= $location->cities( **zip_code_needs_to_go_here** ); ?></option>
</select>
When I run the script and hard code a zip, works fine, but my JS / AJAX knowledge is very limited, so I need help passing the zip code from a seperate input field to the method above. Thank you for any help!!