Answer the question
In order to leave comments, you need to log in
How to get input value in vuejs?
In jQuery I get like
this How to do it in Vuejs?
var value = $('input').val();
Answer the question
In order to leave comments, you need to log in
something like this
<input v-model="name"> // привязка к переменной
<script>
data(){
name: 'some name' // объявление переменной
}
methods:{
getName(){
console.log(this.name) // использование переменной
}
}
</script>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question