Skip to content

jQuery Serialize and readonly.js #19

Description

@thomasb88

Hi Corenzan,

Looking to readonly.js, when used with select, you turn them readonly creating an input with the same name attribute than the select.

When serializing, jQuery do it using the name attribute for select, so instead having no value (serializeArray don't get value when the element is disabled), you get the value from this hidden input.

But when user change select value when select element is disabled, identifiying the select by value (in case of programmaticaly change without direct user interaction), then it turns that this hidden input is not update.

The idea would perhaps to set a trigger that update this hidden input value when the select value is modified on readonly mode.

What do you think ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions