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
Post a Comment