Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

select multiple option in laravel

<select name="like_to" id="like_to" class="form-control">
  <option value="giveaway" {{$data->like_to=='giveaway' ? 'selected' : ''}}>Give Away</option>
  <option value="lend" {{$data->like_to=='lend' ? 'selected' : ''}}>Lend</option>
  <option value="borrow" {{$data->like_to=='borrow' ? 'selected' : ''}}>Borrow</option>
</select>
 
PREVIOUS NEXT
Tagged: #select #multiple #option #laravel
ADD COMMENT
Topic
Name
2+5 =