[SOLVED] Revisit Zip Code Lookup |
4/3/2024 1:35:23 AM |
PHPRunner General questions | |
A
asawyer13 authorDevClub member
I have a table of 41,000+ zip codes, with city and state. What I would like to do is have the user start entering the zip code and when they have finished, the field would show the city and state for that zipcode and the user can select which is correct. Then the app could fill in the city and state fields also. I understand the autofill part, but I can't seem to get the app to show me say for example the if the user enters 01062 for the zip code, there are two cities that are possible for that zip code. I tried edit box with Ajax, but it didn't work either. Using SQL Server though I don't think that matters. I can create a demo project if that helps. |
|
![]() |
fhumanes 4/3/2024 |
Hello, I think the solution I explain in this article is what you need. https://fhumanes.com/blog/guias-desarrollo/guia-57-lookup-eficiente-de-gran-volumen-de-informacion-select2/ Also, I did this plugin on the same solution, which may also be useful to you. https://fhumanes.com/blog/guias-desarrollo/guia-71-plugin-select2_ajax/ Greetings, |