Fetching data from database to show in options in select2

Published 1 month ago by Hourlee

I have a form - a dropdown which I use select2. I want to search and select a name that is in database. I'm using axios to get data but I do not know how to display the name in the dropdown.

hdsavani
Hourlee

i'm using vue js and laravel. Do you have another example?

hdsavani

Actually, I don't have the same example that you want but I think you can use some part of the code from it may be.

Hourlee

thank you

Please sign in or create an account to participate in this conversation.