The statement below is found in the documentation for the jQueryUI autocomplete widget. I want to provide local data as an array of objects so that when the user selects from a list of program titles (labels) that a corresponding database key (value) is returned.
Can someone provide a simple example of this? I've tried many variation but am obviously not understanding something. I believe all I need is a simple example with static loading of array variables in order to move forward. Thanks.
From documentation: "The local data can be a simple Array of Strings, or it contains Objects for each item in the array, with either a label or value property or both. The label property is displayed in the suggestion menu. The value will be inserted into the input element after the user selected something from the menu."