I found they have select2 file in their vendor folder, so i linked them (those links works when i open these two files in web browser). in header
<link href="" rel="stylesheet">
in Footer
<script src=""></script>
in body
<div class="item form-group">
<select class="form-control select2-multi" name="tags[]">
@foreach($tags as $tag)
<option value=""> </option>
@endforeach
</select>
</div>
in body
<script type="text/javascript">
$(.select2-multi').select2();
</script>
but, still it not working.. this code found in here https://www.youtube.com/watch?v=BNUYaLWdR04&list=PLwAKR305CRO-Q90J---jXVzbOd4CDRbVx&index=43
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire