File tree Expand file tree Collapse file tree
docs/_includes/options/data Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 included on the data objects that Select2 exposes.
3434 </ p >
3535
36+ < h3 >
37+ Do the < code > id</ code > properties have to be strings?
38+ </ h3 >
39+
40+ < p >
41+ Because the < code > value</ code > attributes on a < code > >select<</ code >
42+ tag must be strings, the < code > id</ code > property on the data objects must
43+ also be strings. Select2 will attempt to convert anything that is not a
44+ string to a string, which will work for most situations, but it is
45+ recommended to force all of your ids to strings ahead of time.
46+ </ p >
47+
48+ < h3 >
49+ I can't select results with blank ids or an id of < code > 0</ code > !
50+ </ h3 >
51+
52+ < p >
53+ See < a href ="#do-the-id-properties-have-to-be-strings "> Do the < code > id</ code > properties have to be strings?</ a > .
54+ </ p >
55+
3656 < h3 >
3757 How should nested results be formatted?
3858 </ h3 >
You can’t perform that action at this time.
0 commit comments