How to attach retrieved data to smart select as selected?

how to attach retrieved data to smart select as selected because this format is not working

$$(’.list’).val(resp[0].data)

like this.

image

thanks…

You can do it with:

smartSelect.getValue()

See the docs: https://framework7.io/docs/smart-select.html