1👍
After a bunch of different combinations this worked for both the display and the value
this.sexSelected = ({
label: 'Female',
value: '2'
})
👤Bill
0👍
When working with single selects/dropdowns, you should always keep in mind that behind the scene only the value is used and not the label/name (what the user sees), so basically try each of the ways to set only the value, not the label
this.sexSelected.value = "2";
this.sexSelected.value = 2;
this.sexSelected = "2";
this.sexSelected = 2;
one of these should work
- [Vuejs]-Validate User in PHP API via JS frontend framework (VUEJS) Concept
- [Vuejs]-How to integrate vue-turnstile into a vue application?
Source:stackexchange.com