0
어떻게 현재 블레이드 코드에 드롭 다운 상자를 추가 할 수 있습니까?Laravel + Blade를 사용하여 드롭 다운 상자 추가
{!! Form::input('text', 'example', old("example", $user->example), array('class' => 'form-control')) !!}
어떻게 현재 블레이드 코드에 드롭 다운 상자를 추가 할 수 있습니까?Laravel + Blade를 사용하여 드롭 다운 상자 추가
{!! Form::input('text', 'example', old("example", $user->example), array('class' => 'form-control')) !!}
이 시도 :
이
내가 현재 가지고있는 것입니다echo Form::select('size', array('L' => 'Large', 'S' => 'Small'), 'S', array('id' => 'your_id', 'class' => 'your_class'));
여기서 드롭 다운의 이름,
array
: 배열을 생성하는 드롭 다운
size
S
: 기본 선택 값, 그 후
당신은 통과 할 수와 같은 배열의 id
, class
, style
:
array('id' => 'your_id', 'class' => 'your_class')