0π
β
To set the selected variable, add a change handler as below
<select class="form-control" name="currency_from_code" id="currency_from_code" @change="onSelected($event)">
Write a method as below
onSelected:function(event){
this.selected = event.target.value;
}
Once you set this variable,you can use the same in keyup event
Source:stackexchange.com