Populate table with selected dropdown - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12) +--- Thread: Populate table with selected dropdown (/showthread.php?tid=62708) |
Populate table with selected dropdown - nofpowells - 08-17-2015 Hey guys i'm new and i need how to populate a table using a select dropdown. I know how populate a table. PHP Code: <select class="form-control"> RE: Populate table with selected dropdown - Wouter60 - 08-17-2015 CI has a form helper. Load it with $this->load->helper('form'). Make an array of the "options" you want in the dropdown, like so: PHP Code: $dates = array( Code: <script> The script requires Jquery, so load that first. RE: Populate table with selected dropdown - nofpowells - 08-18-2015 Works!! Ty! |