Answer the question
In order to leave comments, you need to log in
How to change the input value of a vue.js component from another js?
There is a form on vue.js. There is a jqyery planin map on the page. It is necessary to substitute the addresses of selected points on the map in texarea.
I do it like this:
let $addres = $('#address');
if($addres.length){
$addres.val("Мои данные").change();
}
Answer the question
In order to leave comments, you need to log in
$addres.val("Мои данные").change();
.change()
with . [0].dispatchEvent(new Event('input'))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question