Hey there! I'm currently working on retrieving the selected value of a select element. Below is the HTML code for the select:
<select id="employee">
<option v-bind:key="employee" v-for="employee of employees" v-bind:value="{id: employee.id}">{{ employee.name }}</option>
</select><br><br>
Here's the snippet of JavaScript where I want to log the select value to the console.
console.log(document.getElementById('employee')[0].value)