Hello Stackoverflow community, i need to use Vue Axios / Resource, i managed to make a HTML select box loaded from my database in my view, after i select any record i need to use another value from that record and put it into an HTML input, for example: in my html select i click on my "stpr_tx_descripcion" attribute, after that i need another atribute, the "stpr_in_ticket", but i don't know how make it dynamically.
This is what i got so far:
Im using Laravel to return a query object to my view like this:
$query= spr_tipo_per_rep::all('stpr_tx_descripcion','stpr_in_ticket'); ->with('query',$query);
In my view im using the Html select which loads the record:
<select v-model="descripcion" > <option value="">Select value</option> @foreach($query as $data)
<option value=""></option> @endforeach </select>
Below that i need to put the value from "stpr_in_ticket" atribute which is another detail into my input using vue:
<input type="text" v-model="???" readonly="readonly">
Thanks.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire