Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selects don't work in <hjq-dialog-and-button> #3

Open
ritchiey opened this issue Aug 20, 2009 · 0 comments
Open

Selects don't work in <hjq-dialog-and-button> #3

ritchiey opened this issue Aug 20, 2009 · 0 comments

Comments

@ritchiey
Copy link

The chosen value of a select tag in a will be ignored when the dialog is submitted. Instead the default value for the select is submitted.

This seems to be because the formlet is cloned before it is serialized. Apparently JQuery clone doesn't copy DOM values like currently selected item in a . See http://www.mail-archive.com/[email protected]/msg60449.html I've worked around it by serializing the original element instead of the clone which is, of course, a shameful and ugly hack but works because I don't happen to have any sub-forms or formlets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant