Add option in select and set_select than - 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: Add option in select and set_select than (/showthread.php?tid=67673) |
Add option in select and set_select than - Tokotome - 03-23-2017 Hello, everyone. I`m new to Codeigniter and PHP too. So here is my problem. I have two dropdowns each with values - '1', '2' and '3'(set_selected). By default is '3' from the first and disables the second dropdown, also prepending to 2nd a new disabled empty option and remove it if '1' or '2' is selected from the 1st than(using JQuery) Any suggestions how to set_select the new option in 2nd dropdown or maybe I`ll need to change my concept? Thanks |