how fill select from another select? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: how fill select from another select? (/showthread.php?tid=9174) |
how fill select from another select? - El Forum - 06-16-2008 [eluser]Asinox[/eluser] Hi, im new with CI, and i hav some question about it... i hav a form and this form hav 2 select (categories and subcategories) the subcategories select i need that the values (option) change if i change the categories and then ill select the subcategories from categories... And the another question is, the select categories i filled with a funcion that make query and bring me all categories, but when i want to insert the data i hav problem because i hav to function calling the same view (i dont know how use 2 function in the same view), i hav 1 function for fill the categories select and another for save the POST data....but the data can't save... somebody help me please? Thanks u how fill select from another select? - El Forum - 06-16-2008 [eluser]Clooner[/eluser] Quote:i hav a form and this form hav 2 select (categories and subcategories) the subcategories select i need that the values (option) change if i change the categories and then ill select the subcategories from categories…You probably would need javascript or ajax for this. Check out the videotutorials. Quote:And the another question is, the select categories i filled with a funcion that make query and bring me all categories, but when i want to insert the data i hav problem because i hav to function calling the same view (i dont know how use 2 function in the same view), i hav 1 function for fill the categories select and another for save the POST data....but the data can’t save…Do you have a code example? how fill select from another select? - El Forum - 06-16-2008 [eluser]Asinox[/eluser] Here my controller, im tryin to programming a news paper, function leer (read)article, function nuevo_articulo (new_article) for add new article and here i have the select categories table for fill the select.... Code: class Periodico extends Controller{ Where r the videostutorials? just i found blog video tutorial Thanks how fill select from another select? - El Forum - 06-16-2008 [eluser]Bramme[/eluser] Have a look here http://ellislab.com/forums/viewthread/82447/ |