Ajax Code Php For Country State City Using English Quizzes

Active6 years ago

Learn how to make the dynamic dependent dropdown of country state city using jQuery and Ajax in PHP. Example code to implement dynamic dependent drop-down list in PHP with country state city.

I am making country state and city drop down with the help of ajax in our codeigniter frame work .

The structure of database given bellow.

Oct 21, 2016  here i am going to show you dynamic dropdownlist using ajax,php and mysqli this is 100% dynamic when you selevt country from dropdown on that time you will get all state of selected country and. We are create /make a search drop down country, state dropdown google forms, state dropdown php how to select in php, select box in php, select database in php.

Country

State

city

Ajax Code Php For Country State City Using English Quizzes

user controler

user-view View

deal module country_modle

city_model Module

I include ajax script in header file.

After making code its not working .

Any help is appreciated!

Thanks

rahul tripathirahul tripathi
1062 gold badges6 silver badges18 bronze badges

3 Answers

create a javascript variable

in your javascript code conecat it

use firefox and firebug to debug your ajax code

umefarooqStateumefarooq
3,9461 gold badge21 silver badges32 bronze badges

As I have said in the comments, you can use Firebug or Chrome dev tools(network tab) to identify your problem:

Controller:

View:

Ajax Code Php For Country State City Using English Quizzes On Grammar

Ajax Code Php For Country State City Using English Quizzes

I don't really know what your actual problem is so do us a favor, edit your question and paste what error you see on firebug.

Lyrics For Country State Of Mind

Wern AnchetaWern Ancheta
8,18335 gold badges82 silver badges130 bronze badges

Ajax Code Php For Country State City Using English Quizzes Pdf

In this function, you put incorrect variable name $dealCountry.

OshoOsho

Not the answer you're looking for? Browse other questions tagged phpcodeigniterdrop-down-menu or ask your own question.