ABABBest
asked on
Selectbox within bootbox dialog not returning value
Hello,
We have a problem wiht a selectbox when it is opened within bootbox dialog.
When we select a value form the selectbox not opened within bootbox we get the selected value, but when we put the same selectbox within bootbox dialog, and use jquery to read the selected item, we always get the first option value of the selectbox returned.
See this fiddle for more information, and click the selectboxes.
jsfiddle
Hope someone can help me.
We have a problem wiht a selectbox when it is opened within bootbox dialog.
When we select a value form the selectbox not opened within bootbox we get the selected value, but when we put the same selectbox within bootbox dialog, and use jquery to read the selected item, we always get the first option value of the selectbox returned.
See this fiddle for more information, and click the selectboxes.
jsfiddle
Hope someone can help me.
Rather put your code in an event handler bound to a class(es) in your modal controls. That way you will get the event even though the html is copied to a new parent.
ASKER
I don't know exactly what you mean. Can you adjust the fiddle to show me?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you, i can make it work the way i wan't now!
You are welcome.
Open in new window