![]() |
SELECT FROM DATABASE CI 3 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: SELECT FROM DATABASE CI 3 (/showthread.php?tid=92520) |
SELECT FROM DATABASE CI 3 - rudibudi2491 - 02-26-2025 hello everyone, I am using CI 3 and want to do multiple insert forms, this form contains select input from the database, after we select it will display the stock of the item we selected, when we press the (+) blue button to add a row using javascript, we must fill the select input with the same item data from the previous select input, now what I want to ask, is it possible that the select data that has been used will not be in the display of other select options. if you see from the example, row 1 I select apple, and in row 2 I don't want the apple item to be option selected in row 2. ![]() Here my view code : PHP Code: <button type="button" class="btn btn-info tambah-form" disabled><i class="fa fa-plus"></i></button> My function javascript : PHP Code: $(".tambah-form").on('click', function(){ |