You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
So, I've been playing around with this for a normal select scenario. We need to do a tagging implementation with typeahead so I turned back to this since it was so easy to use the first time around. Unfortunately I've run into some issues.
Here's my current selectize (which will grab a set of json array with value: 'my value', etc.
After figuring out that I had to send data back as a json object so I could specify the label/value field names it worked great. But when I display something that already has data in it I can't for the life of me figure out what to put in the value="" for:
I've tried json data, the original comma-delimited items, all to no avail. So, is there a way to tell selectize to NOT use a field name and just grab the string that's in the array? Would save me a lot of headache. Read through the docs and poked at the JS directly but couldn't find anything that says this.
Activity
sclausen commentedon Jan 15, 2015
+1
Added support for using `dataAttr` to hydrate a text input element: `…
brianreavis commentedon Jan 30, 2015
See the 0.12.0 release for this. Selectize now recognizes the
dataAttrattribute (data-databy default) for populating the initial values.