[Vuejs]-How to grab value from v-model by array

0๐Ÿ‘

โœ…

You should bind the v-model on the <select> tag not on <option> tag

Bind the value attribute on the <option> tag

<table class="table table-bordered" v-for="(item, index) in bankInfo">

<div class="form-group">
<select v-model="item.bankName"  class="form-control">
<option default>์„ ํƒ</option>
<option v-for="money in bankList" :value='money' > {{money}} 
</option>
</select>
</div>

Leave a comment