Updating select box using ajax
Means state is related with country and city is related with the state.
Based on changing of country & state, respective state & city will be fetched from the database without reloading the page using j Query, Ajax, PHP and My SQL.
Also, the respective select options HTML are returned to the Ajax success function.
[eluser]Nuno Simões[/eluser] I there, I'm a newbie on CI and I'm having a problem: On my view page nammed init.php, I have two select boxes on a form and I want to update one select (modelo) with data from database after change selection on other select (fabricante). I've already worked with the SACK, but I don't know how to integrate this with Code Igniter.
In this tutorial, we’ll implement relational dropdown of country state city using j Query, Ajax, PHP and My SQL.The full app’s code has been released as a Rails project on Git Hub; if at some point something fails in your local environment I would suggest you check first that your file contents match those on the reference.