Load database records from a Select with Ajax, Laravel

0

I am making a small form where I request that you select a user's name by means of a Select:

<select class="form-control dynamic" id="tipopersona" name="tipopersona" data-dependent="empresa">
   <option value="" selected="true" disabled="true">Seleccione Tipo de Persona</option>
    @foreach($tpersona as $tp => $value)
   <option value="{{$value->id}}">{{$value->t_persona}}</option>
    @endforeach
  </select>

The idea is that by selecting a user you can get all the data saved from that user in the database and then display them in different input from my view.

    
asked by Luis Medina 30.04.2018 в 04:08
source

0 answers