C
C
chelkaz2019-01-23 14:09:28
Vue.js
chelkaz, 2019-01-23 14:09:28

How to highlight input content via function?

Good afternoon, I have inputs in the loop.

<input
v-bind::class="IfCountUP(quantity, max_quantity)"
:id="'QID_'+id" type="text"
min="1"
v-bind:max="max_quantity"
v-bind:value="quantity">

How to highlight the value value by condition?
If quantity > max_quantity Is it
possible to pass THIS of this element to the IfCountUP function? After all, $event.target cannot be passed there, since there is no event.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-01-23
@chelkaz

Is there any motivation for not using v-model? - now everything looks as if you are putting sticks in your own wheels out of the blue. Still elementary, for example .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question