Skip to content

How would you trigger a select element? #128

Closed
@ay13

Description

@ay13
<select @change="onSelect($event.target.value)">
  <option v-for="option in options" :value="option.value" :key="option.value">{{option.label}}</option>
</select>

I am passing in the options through propsData just fine in my first test.

Next, I want to trigger a change on the select and choose the second one in the list which will trigger the change event and pass the value to a method I have. I cant find an example of how to do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions