Hello, I am customizing a wordpress theme. It contains a Location Search that shows locations as drop down menu. But i want to show predictive search such as when user types "NE" it shows "New York, united States". It is also called autocomplete. I want a solution for a it from beginning as i am completely newbie.
The Theme has admin panel where an option allow to add locations, and these location are saved in database. I just need these locations to show on predictive search.
Here is the code that calls the location databsae :
I think "srch_location" is the location where all these location saved. How can i show these to predictive search. Please answer in steps so i can understand because i dont know php very well.
Also it would be good if yoou include the easy jQuery or AJAX Script that does the job and a guide how to implement in the code.
Update: How to call the location where country list is saved using php? for example i am using this code to get the location to be appear on the predictive search :