When using the { value : , text : } array for [options] in the select input, the value you put is changed.
Example:
Using
[
{ "value" : "val1", "text" : "val1" },
{ "value" : "val2", "text" : "val2" },
{ "value" : "val3", "text" : "val3" }
]
will yield the select control as if using
[
{ "value" : "0: val1", "text" : "val1" },
{ "value" : "1: val2", "text" : "val2" },
{ "value" : "2: val3", "text" : "val3" }
]
When using the { value : , text : } array for [options] in the select input, the value you put is changed.
Example:
Using
[ { "value" : "val1", "text" : "val1" }, { "value" : "val2", "text" : "val2" }, { "value" : "val3", "text" : "val3" } ]will yield the select control as if using
[ { "value" : "0: val1", "text" : "val1" }, { "value" : "1: val2", "text" : "val2" }, { "value" : "2: val3", "text" : "val3" } ]