Answer the question
In order to leave comments, you need to log in
How to get THIS of an element in a loop and pass it to a function?
<template v-for="(item, i) in orders">
<input v-bind:max="item.max" v-bind:value="item.quantity"/>
</template>
methods: {
// как применить эту функцию к инпуту без кликов, именно в цикле, что бы получать в ней THIS.
quantity: function(max, quantity) {
// тут мне нужно как то получить THIS инпута
}
//
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question