Jquery Autocomplete Doesn't Work With Key Value Pair Array
I try to create an autocomplete field with jQuery autocomplete widget, but it seems that does not work for some reason. The code I use is the following: HTML
Solution 1:
As it is clearly stated in the docs, your fields must be labeled label
and value
.
Array: An array can be used for local data. There are two supported formats:
An array of strings: [ "Choice1", "Choice2" ] An array of objects with label and value properties: [ { label: "Choice1", value: "value1" }, ... ]
EDIT : And as it has been pointed out, the input's id is autocomplete, not specialties.
Post a Comment for "Jquery Autocomplete Doesn't Work With Key Value Pair Array"