hobo-jquery icon indicating copy to clipboard operation
hobo-jquery copied to clipboard

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

Open ritchiey opened this issue 15 years ago • 0 comments

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.

ritchiey avatar Aug 20 '09 02:08 ritchiey