Skip to content
Advertisement

How to get selected value from dropdown in vuejs?

HTML

JavaScript

JS

JavaScript

How can I get the selected value of v-select upon clicking on the button ? . .

Advertisement

Answer

If you are refering to you can continue reading.

Let’s take this example (codepen):

JavaScript

If you use other key for value in your items object you need to specify the item-value attribute in your v-select element, else it will use the “value” key by default.

More on v-select component

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement