![]() |
passing select option to popup dialog - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: passing select option to popup dialog (/showthread.php?tid=63563) |
passing select option to popup dialog - rchiu5hk - 11-13-2015 Dear all, I have the form with select option control. It will process the delete user function. I want to show the popup dialog with showing some user information and confirm delete button. How to pass information from form to popup dialog?? As I try to do below but seems something wrong. <select id="sellerID"..> </select> // it will assign hidden variable userID after onchange on select. <input type="hidden" id="userID" > <a href="#popupdialoig" var1=<?php echo $username;?> ...> click </a> RE: passing select option to popup dialog - sv3tli0 - 11-15-2015 Its not really CodeIgniter or PHP problem to deal with.. It will be a better place to ask lets say at Stack Overflow ... The simplest way is to add: onchange="confirm('......');" but this usually is not enough .. RE: passing select option to popup dialog - ivantcholakov - 11-15-2015 Usually modal dialogs have an event defined like "open" or "load", that you can use for populating the controls inside. For example, see this project https://github.com/nakupanda/bootstrap3-dialog , http://nakupanda.github.io/bootstrap3-dialog/ It has the event "onshow". |