How To Set Value To Input Field In Vuejs
Solution 1:
Try using the ref
property, see here: https://vuejs.org/v2/api/#ref
Basically would look something like:
<va-input label="Address 1"
v-model="Address1"id="address"
class="inp"
ref="inputRef"
>
</va-input>
...
this.$refs.inputRef.$el.value = ...
You may need to dig a little into the structure but from the $el
you can access the element.
Post a Comment for "How To Set Value To Input Field In Vuejs"