xcash / bootstrap-autocomplete

Bootstrap Autocomplete
MIT License
168 stars 72 forks source link

Another json format mapping #104

Closed Gitsko closed 3 years ago

Gitsko commented 3 years ago

Hello,

I have a JSON file with other structures such as. [ { "latitude": 57.092759, "longitude": 9.849243, "departure": "XXX", "destination": "AAA", "description": "descriptionA", "type": "typeX", "state": "inactive" }, ..... ]

I want to populate a select field with description as text and destination as value.

Is this possible, if yes how ?

xcash commented 3 years ago

It is possible and the test page is doing a similar thing. Just check the documentation / examples.