Skip to content

How to set init value and label #155

Closed
@frthjf

Description

@frthjf

I use value declaration to initialize selectize:

<input type="text" value="awesome,neat">

But I don't know how to declare values with a different label, something like:

<input type="text" value="[{value:12,label:awesome},{value:137,label:neat}]">

so that selectize will show up with "awesome" and "neat" by post "12" and "137" on submit.

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