The autocomplete widget exposes a range of unique events that allow us to react programmatically to the widget being interacted with. These events are listed as follows:
Event |
Fired when... |
---|---|
|
A suggestion from the list is selected. This event is fired once the list has closed and the |
| |
| |
| |
| |
| |
|
The select
event is useful when we are working with an array of objects as the data source and have additional data other than the label
and value
properties that we used earlier. For the next example, remove the <div>
container that we used in the last example and then change the configuration object, so that it appears...