# Select2

Select2 gives you a customizable select box with support for searching, tagging, remote data sets, infinite scrolling, and many other highly used options.

https://select2.org (opens new window)

Select2

# Component

A Laravel Blade Component is available for select2, see the component documentation

# Usage

To use select2 you can use the loading view boilerplate::load.select2 (opens new window)

When loaded, select2 will use the locale defined in config/app.php

You can find an example of use here : select2.blade.php (opens new window)

@section('content')
<select class="select2">
    <option selected="selected">Alabama</option>
    <option>Alaska</option>
    <option>California</option>
</select>
@endsection

@include('boilerplate::load.select2')

@push('js')
<script>
    $(function() {
        $(".select2").select2();
    });
</script>
@endpush