I followed the instructions on to set up a Select2
select. However, I noticed that my Select2
select doesn't look great. Here is how it currently appears:
https://i.sstatic.net/SIv7L.png
When I don't transform it with jQuery $('#users').select2();
into a Select2 select, it just looks like a normal select input. This is what my source code looks like so far:
@extends('layouts.dashboard')
@section('content')
<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js" type="text/javascript"></script>
<script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap.min.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" />
<div class="page-content-wrapper">
<!-- BEGIN CONTENT BODY -->
<div class="page-content" style="min-height: 1095px;">
...
... (remaining content has been omitted for brevity)
...
</div>
</div>
@endsection
Though I'm not getting any errors in the console and I am using the bootstrap CSS, my Select2
select still looks off. Can someone please assist me in identifying the issue and resolving it?
Thank you in advance!