Alizey
4 years ago
2539
11
General

Select DropDown Option Seleted In Laravel

Posted 4 years ago by Alizey

How can i show selected dropdown Option which user has selected .

 <select class="form-control m-bot15" name="role_id">
           @if($roles->count() > 0)
          @foreach($roles as $role)
           <option value="{{$role->id}}">{{$role->name}}</option>
          @endForeach
          @else
           No Record Found
            @endif   
        </select>

How can i show the selected value that comes from db ?

Please sign in or create an account to participate in this conversation.