samedi 24 octobre 2020

How to use gentelella alela select2 option in laravel

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



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

Aucun commentaire:

Enregistrer un commentaire