[Vuejs]-Laravel 5 : How to get the value on keyup in edit vue js

0👍

try this.

<input type="text" class="form-control" name="edit_code" @input="checkCOACode"  v-model="coa_code" v-bind:value="chart_of_account_edit.code">

EDIT

<label>Code</label>
<input type="text" class="form-control" name="edit_code" @keyup="checkCOACode"  v-model="coa_code" v-model:value="chart_of_account_edit.code">

0👍

Basing on the error you got, you can’t have v-model and v-bind:value in the same element. Try:

<label>Code</label>
<input type="text" class="form-control" name="edit_code" @keyup="checkCOACode"  v-model="coa_code">

Leave a comment