Skip to content
Advertisement

How to change value from select dropdown in database

i want to change value from my dropdown but i’m begginer and i’m little lost. enter image description here

This is my Controller method:

JavaScript

This is my dropdown in vuejs file:

JavaScript

and this is my method in vue js:

JavaScript

the route is fine, the problem are probably my methods.

Advertisement

Answer

I think you should pass right values to your onChanges method. When you use @change=”onChanges()” you should call it with the same parameters as it was declared – id and status_id.

So it should be something like this

JavaScript

And in js

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement