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