I have a PHP script that generates JS array in this form
new New Array (New York), New Array ("Massachusetts", 3), New Array ("Michigan", 4), New Array ("Minnesota", 5), New Array ("Main", 1), New Array ("Maryland" , 2) Array ("Mississippi", 6), New Array ("Missouri", 7), New Array ("Montana", 8));
Can someone suggest, how to implement auto suggestions for search form?
Thanks
Use:
By specifying the source option, the data source can be optimized to work with the autocomplete different data sources:
- An array with local data
- A string, a URL specified
- one callback
can be a simple array of local data strings, or in this object, T include, either with the label or value property or both. The label properties are displayed in the suggestions menu after the user selects something from the menu and the value will be inserted into the input element. If only one property is specified, then it will be used for both, e.g. If you only provide value-value, then the value will also be used as a label.
Comments
Post a Comment