1

In my loop I have more forms referenced after their dynamic ID's. But in the $refs plugin I can not give it a dynamic value. enter image description here

I want to "ref" to be the value of the parameter

seref
  • 543
  • 2
  • 6
  • 19

1 Answers1

1

the solution:

this.$refs[ref].submit()

because your ref is a string and needs to be inside the [] to enable the dot notation.

wittgenstein
  • 3,670
  • 7
  • 24
  • 41