I want to give default value in a select box that is populated with values.
{!! Form::label('Nomos_id', Nomos'), ['class' => 'control-label']) !!}
{!! Form::select('nomos_id', $nomoi, old('nomos_id'), ['class' => 'form-control select2']) !!}
$nomoi is populated with values and i have a var named $mynomos that has the id of my nomos. Nomos is a territory in Greece.
I want when select box appears to show all values but to have selected as default the value of $mynomos. Where can i put it?
Thanks in advance.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2wCdj1R
via IFTTT
Aucun commentaire:
Enregistrer un commentaire