code here This tutorial is about how to create select options dependent using Codeigniter and AJAX. I am storing theme names in the database like so: I am then calling all themes in the Model and returning the array with this code: I am using my Constructor to grab the data and Render it to my settings view like so: (I am sending a few things at the same time in $this->data that's why it is in an array but I cut that code out). So, Make sure, you have already done it. Basic Dependent dropdown in Codeigniter and Ajax. CLick on the "new" button to make a new database. It is supported by all the main browsers such as Firefox, Chrome, Safari, IE, and Opera. Controller file (Baby_form.php) is shown below. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. rev2023.1.17.43168. Double-sided tape maybe? 6. The sometimes tricky part is figuring out where to put the variable declaration and assignment if conditional. []Set selected value on dropdown populated from database in php. How do I style a