I have a test function in javascript and what it does is that when I select a developer in the select, I pass the name of this to an input, but it passes me the id (all the select fields are from the database) Could you help solve it? I just need the developer's name in the input
<script>
function prueba(x)
{
var opcion=document.getElementById('inputdesa').value=x;
}
</script>
<div class="form-group">
<label for="">Desarrollador</label>
<select name="id_calcu" id="inputid_calcu" class="form-control" onchange="prueba(this.value);">
@foreach($desarrollos as $desarrollo)
<option value="{{ $desarrollo['id_calcu'] }}">{{ $desarrollo['desarrollador'] }}</option>
@endforeach
</select>
</div>