-2

My English is not very well.When I use 'this.$validator.validate()',I don't want to validate all inputs in page.How can I validate some of them?

dadada
  • 1

1 Answers1

0

Probably best to use scopes.

For each input you want to validate, add the attribute data-vv-scope="group1" then you can do this.$validator.validate('group1.*').

If the fields are all in the same form, you can just apply the scope to that form and it will still work.

Ryley
  • 21,046
  • 2
  • 67
  • 81