Problem Statement
Explain using v-model with <select> (single vs. multiple).
Explanation
For single selects, v-model binds to one value. For multiple selects (multiple attribute), v-model binds to an array of selected values. The option’s value can be a string or an object via :value binding.
Code Solution
SolutionRead Only
<select v-model="country">
<option :value="{ code: 'IN', name: 'India' }">India</option>
</select>
<select v-model="tags" multiple>
<option value="vue">Vue</option>
<option value="spa">SPA</option>
</select>