Currently, I'm utilizing vue-select to input or select from a dropdown. Upon selecting an option, my goal is to retrieve the value that has been selected.
Sample Code
<vueSelect
:clearable="false"
v-on:change="itemCodeChange($event)"
:options="itemCode">
</vueSelect>
Script
import vueSelect from 'vue-select'
import 'vue-select/dist/vue-select.css';
components :{
vueSelect,
},
data () {
return {
itemCode:[],
}
},
methods:{
itemCodeChange (a)
{
alert(a)
}
Despite making changes, nothing seems to be happening.