I have two text boxes. Country and City. I am using type ahead in city text box. I want to show the city name according to the country which i typed. How can i pass country value using java script to my PHP function to get correct city name.
Share
You could use AJAX to send the country name to your PHP function.
But you could also do it with Javascript like this if you do not need to determine the city dynamically from the server side.