Automatic dropdown box loading using codeigniter and Jquery/Ajax

By | May 23, 2014

Step1:Open the database.php inside the config folder and make changes like as below

step2:create a table inside testlogin database and insert the values please see the query below.


step3:Create a model file inside application/model/countrystate.php

step4: create controllers inside the controllers folder-application/controllers/countrystate_disp.php

step5:create view file inside the application/view/loadcountrystate.php

Click to see the Demo

Click here to see the detailed code and demo