Skip to content

How to preselect for select element #308

@etanxing

Description

@etanxing

How to set selected attr to <option> element whose value is equal to item.category? Especially when item.category is changed.

<select class="form-control" name="template" v-model="item.category">
            <option v-repeat="templates" value="{{name}}">{{name}}</option>
</select>

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