I'm soliciting for assist. Is there any manner I may want to fill an entered field based on drop-down selection? On my modal I have a dropdown alternative for challenge description and that I would like the subject range enter area dynamically alternate its value. Any help might be plenty preferred.
This is how I retrieved the data for my dropdown
subjects=DB::table('programs_subj')->select('corsdes', 'corsno')->get()
This is my dropdown code for the subject description which is working and the selected is saved but I could quite how to incorporate the subject number
<select name="corsdes" id="corsdes" wire:model="corsdes">
<option value="corsdes" wire:model="corsdes"></option>
@foreach($subjects as $sbj)
<option value="{{ $sbj->corsdes }}">{{ $sbj->corsdes}}</option>
@endforeach
</select>
<input name="corsno" id="corsno" wire:model="corsno"><input>
0 Replies