Welcome Guest, Not a member yet? Register   Sign In
passing select option to popup dialog

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>

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 ..
Best VPS Hosting : Digital Ocean

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".

Theme © iAndrew 2016 - Forum software by © MyBB