Question · Vue.js course · Module 5: Events & Forms
Conditional form fields
How do you show an additional field only when a checkbox is checked?
Answer options
- <div v-show-if="checkbox">
- <div display="checkbox">
- <div v-if="showExtra"> with v-model="showExtra" on the checkbox
- <div v-conditional="checkbox">
You can check the correct answer by solving this task in the CodeWorlds game.