![]() |
dependable dropdown in codeigniter - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: dependable dropdown in codeigniter (/showthread.php?tid=62635) |
dependable dropdown in codeigniter - Midhun Mohanan P - 08-07-2015 how to build dependable dropdown using codigniter. can we us ajax for this . any one please help me RE: dependable dropdown in codeigniter - Wouter60 - 08-08-2015 CI doesn't have functions for hiding or displaying elements dynamically after the page is loaded. That's something you need Javascript for. If you want the selected value to make CI do something (server sided), then you need AJAX. Jquery is a very easy and efficient way for basic Javascript functions as well as advanced AJAX requests. Include a link to the Jquery framework in the head section of your page (or template). In your view file, after the closing php tag, you put the jquery script, like this: PHP Code: <?php RE: dependable dropdown in codeigniter - dmyers - 08-08-2015 (08-07-2015, 10:58 PM)Midhun Mohanan P Wrote: how to build dependable dropdown using codigniter. Using the form helper has a built in function http://www.codeigniter.com/user_guide/helpers/form_helper.html#form_dropdown |