0👍
✅
Within the onChange method you put your own logic for the date range
new Vue({
el: "#app",
data: {
key: ""
},
methods: {
onChange() {
console.log(this.key)
}
}
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<div id="app">
<select name="LeaveType" @change="onChange()" class="form-control" v-model="key">
<option value="1">Annual Leave/ Off-Day</option>
<option value="2">On Demand Leave</option>
</select>
</div>
Source:stackexchange.com