We are currently creating a drop down in Laravel like so:
{{Form::select('job_location_id',
$jobLocationList,
'',
['class' => 'form-control',
'autocomplete' => 'off']
)}}
Is it possible to make this a "Select Multiple" with Laravel?
Try this:
{{ Form::select('job_location_id[]', $jobLocationList, '', [
'class' => 'form-control',
'multiple' => 'multiple',
'autocomplete' => 'off'
]) }}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.