We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
`$().select2('val',...)` is being deprecated according to the code, removing it here
Support multiple attribute
Have found it not working on div tag, everything fine with select tho.
when using placeholder option. Select2 throws an error if allowClear option is not set to true.
Added support for multi. Select2 expects an array passed in the val function when multi valued. From 3.5.2 documentation: "Array of the value attributes of the options that should be selected. null for empty."
Changing "data" to "val" to work properly.
Improved snippet to work with multi value select
Updated Knockout.js Integration (markdown)
This change will make it work with Knockout 3. See http://knockoutjs.com/upgrade-notes/v3.0.0.html (2. Bindings are now refreshed independently)
updated broken js references on the fiddle
Added example using an `input[type=hidden]` and made it select the initial value if specified.
Created Knockout.js Integration (markdown)