0👍
You should use radio type inputs for that case, using the same “name” attribute for both:
<input type="radio" id="week" value="week" name="jobPostingLength" v-model="jobPostingLength">
<label for="week">1 Week</label>
<input type="radio" id="month" value="month" name="jobPostingLength" v-model="jobPostingLength">
<label for="month">1 Month</label>
- [Vuejs]-Refresh vuetable-2 component from my parent component
- [Vuejs]-Using a Backbone listener with a Vue component
Source:stackexchange.com