mercredi 30 octobre 2019

how to dynamically option the selected in html just using php?

I'm trying to dynamically the select option selected just using php in laravel but I'm getting this error:

Use of undefined constant selected - assumed 'selected' (this will throw an Error in a future version of PHP) (View: C:\xampp\htdocs\laralast\resources\views\view.blade.php)

below is my view blade

<select class="form-control" name="assign_to" id="assign_to">
    <option selected disabled>Select support</option>
    @foreach($supports as $support)
    <option value="" ></option>
    @endforeach
</select>

Can you help me with this.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/332XoGY
via IFTTT

Aucun commentaire:

Enregistrer un commentaire