Question · Vue.js course · Module 5: Events & Forms

Disabled button in a form

How do you disable the submit button when the form is invalid?

Answer options

  • <button v-disabled="!isFormValid">
  • <button disabled="!isFormValid">
  • <button :disabled="!isFormValid">
  • <button v-if="isFormValid">

You can check the correct answer by solving this task in the CodeWorlds game.