L
L
lagudal2020-11-24 17:53:09
JavaScript
lagudal, 2020-11-24 17:53:09

How to add/remove css classes in vuejs vue-select?

It is necessary to add the value of this value as a class for a certain element when choosing a value from the select.
Here is an example using vue-select


In the example with jqeury, of course, you need to figure it out without it ....

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri, 2020-11-24
@lagudal

There is also v-model:

I
Ilya Olovyannikov, 2020-11-24
@cannibal_corpse

https://codepen.io/Olovyannikov/pen/yLaBNKg
So?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question