html - Select2 with bootstrap example of multiple selection is not working -


i work on laravel app, have probleme select2 multiple selection want use in tags, search solution in last 3 days still dont fixed .. in head section :

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> 

in view:

  <div> 

{!! form::label('tags','select tags:') !!}

@foreach ($tags $tag)

    <option value='{{ $tag->id }}'>{{ $tag->name }}</option>   @endforeach       </select> 

$(.'select2-multi').select2({ multiple:true }); // $('select2-multi').attr( 'aria-hidden', 'true',);

but still have enter image description here instead of result enter image description here


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -