[Vuejs]-Javascript .value is empty when I post to php using axios/vue js

0👍

✅

You shouldn’t manually update the value of the input.

You should add a click listener and change the v-model property

<a @click=“this.txtInput += ‘[smiley]’”

Note: you shouldn’t modify the DOM with vanilla JS, but relu on the methods vue exposes.

Leave a comment