Answer the question
In order to leave comments, you need to log in
How to get selected data from v-select?
I have an array like this:
my_arr: [
{
name: "Adam",
surname: "Brown",
},
{
name: "Bruce",
surname: "Lee",
},
{
name: "Erl",
surname: "Black",
},]
<v-select
v-if="my_arr"
class='multi_drop'
:items="my_arr"
item-text="name"
item-value="surname"
label="Select"
multiple
></v-select>
Answer the question
In order to leave comments, you need to log in
v-model will solve your problem.
<v-col cols="12" sm="6">
<v-select
v-model="model"
:items="states"
label="Select"
multiple
chips
hint="What are the target regions"
persistent-hint
></v-select>
</v-col>
...
data () {
return {
model: [],
}
}
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question