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.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire