[Vuejs]-In Vue.js, how do I enable buttons in a v-for loop when an input is changed?

0👍

Another option is to use the @input or @change event on the input to enable the button.

<input type="text" v-bind:value="dino" @input="enableButton" />

Then down in your methods handle the event. You could also pass dino as a parameter to the @input event handler.

enableButton: function(e) {
  // determine input from e and toggle button
}

Leave a comment