samedi 31 décembre 2016

Pre populate values in dropdown in laravel

I am trying to populate and select the option in my view.

I am able to get the value from my model in my view.

edite.blade.php template

<select id="province" type="text" class="form-control" name="province">
<option value="">Province</option>
<option value="provinceO1">Option 1</option>
<option value="provinceO2">Option 2</option>
</select>

How can i select an option with value I have from my model.

 // this help me to get value from DB



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2hXa8HI
via IFTTT

Aucun commentaire:

Enregistrer un commentaire