can someone please share working example of laravel ajax dropdown. there are so many examples about dependable dropdown, but i want simple dropdown of only one column, i have two tables teacher and nation, when teacher profile is open i want dropdown of nationality using ajax. i have done it without ajax, but i don't know how to do with ajax. without ajax:
<select name="nation_id" class="custom-select" >
<option selected value=" ">Choose...</option>
@foreach($nations as $nations)
<option value="{{@$nation_id}}" {{@$teacher->nation_id== $nations->id ? 'selected' : ''}} >{{@$nations->nation}}</option>
@endforeach
Controller:
$nations = nation::all();