Hi, Sean S

##### Select2

Actions
Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results. Select2 gives you a customizable select box with support for searching, tagging, remote data sets, infinite scrolling, and many other highly used options.
For more info please visit the plugin's Demo Pageor Github Repo.

### Select2 Examples

           <div class="card card-custom">
            <div class="card-header">
             <h3 class="card-title">
              Select2 Examples
             </h3>
            </div>
            <!--begin::Form-->
            <form class="form">
             <div class="card-body">
              <div class="form-group row">
               <label class="col-form-label text-right col-lg-3 col-sm-12">Basic Example</label>
               <div class=" col-lg-4 col-md-9 col-sm-12">
                <select class="form-control select2" id="kt_select2_1" name="param">
                 <option value="AK">Alaska</option>
                 <option value="HI">Hawaii</option>
                 <option value="CA">California</option>
                 <option value="NV">Nevada</option>
                 <option value="OR">Oregon</option>
                 <option value="WA">Washington</option>
                 <option value="AZ">Arizona</option>
                 <option value="CO">Colorado</option>
                 <option value="ID">Idaho</option>
                 <option value="MT">Montana</option>
                 <option value="NE">Nebraska</option>
                 <option value="NM">New Mexico</option>
                 <option value="ND">North Dakota</option>
                 <option value="UT">Utah</option>
                 <option value="WY">Wyoming</option>
                 <option value="AL">Alabama</option>
                 <option value="AR">Arkansas</option>
                 <option value="IL">Illinois</option>
                 <option value="IA">Iowa</option>
                 <option value="KS">Kansas</option>
                 <option value="KY">Kentucky</option>
                 <option value="LA">Louisiana</option>
                 <option value="MN">Minnesota</option>
                 <option value="MS">Mississippi</option>
                 <option value="MO">Missouri</option>
                 <option value="OK">Oklahoma</option>
                 <option value="SD">South Dakota</option>
                 <option value="TX">Texas</option>
                 <option value="TN">Tennessee</option>
                 <option value="WI">Wisconsin</option>
                 <option value="CT">Connecticut</option>
                 <option value="DE">Delaware</option>
                 <option value="FL">Florida</option>
                 <option value="GA">Georgia</option>
                 <option value="IN">Indiana</option>
                 <option value="ME">Maine</option>
                 <option value="MD">Maryland</option>
                 <option value="MA">Massachusetts</option>
                 <option value="MI">Michigan</option>
                 <option value="NH">New Hampshire</option>
                 <option value="NJ">New Jersey</option>
                 <option value="NY">New York</option>
                 <option value="NC">North Carolina</option>
                 <option value="OH">Ohio</option>
                 <option value="PA">Pennsylvania</option>
                 <option value="RI">Rhode Island</option>
                 <option value="SC">South Carolina</option>
                 <option value="VT">Vermont</option>
                 <option value="VA">Virginia</option>
                 <option value="WV">West Virginia</option>
                </select>
               </div>
              </div>
              <div class="form-group row">
               <label class="col-form-label text-right col-lg-3 col-sm-12">Nested Example</label>
               <div class=" col-lg-4 col-md-9 col-sm-12">
                <select class="form-control select2" id="kt_select2_2" name="param">
                 <optgroup label="Alaskan/Hawaiian Time Zone">
                  <option value="AK">Alaska</option>
                  <option value="HI">Hawaii</option>
                 </optgroup>
                 <optgroup label="Pacific Time Zone">
                  <option value="CA">California</option>
                  <option value="NV" selected>Nevada</option>
                  <option value="OR">Oregon</option>
                  <option value="WA">Washington</option>
                 </optgroup>
                 <optgroup label="Mountain Time Zone">
                  <option value="AZ">Arizona</option>
                  <option value="CO">Colorado</option>
                  <option value="ID">Idaho</option>
                  <option value="MT">Montana</option>
                  <option value="NE">Nebraska</option>
                  <option value="NM">New Mexico</option>
                  <option value="ND">North Dakota</option>
                  <option value="UT">Utah</option>
                  <option value="WY">Wyoming</option>
                 </optgroup>
                 <optgroup label="Central Time Zone">
                  <option value="AL">Alabama</option>
                  <option value="AR">Arkansas</option>
                  <option value="IL">Illinois</option>
                  <option value="IA">Iowa</option>
                  <option value="KS">Kansas</option>
                  <option value="KY">Kentucky</option>
                  <option value="LA">Louisiana</option>
                  <option value="MN">Minnesota</option>
                  <option value="MS">Mississippi</option>
                  <option value="MO">Missouri</option>
                  <option value="OK">Oklahoma</option>
                  <option value="SD">South Dakota</option>
                  <option value="TX">Texas</option>
                  <option value="TN">Tennessee</option>
                  <option value="WI">Wisconsin</option>
                 </optgroup>
                 <optgroup label="Eastern Time Zone">
                  <option value="CT">Connecticut</option>
                  <option value="DE">Delaware</option>
                  <option value="FL">Florida</option>
                  <option value="GA">Georgia</option>
                  <option value="IN">Indiana</option>
                  <option value="ME">Maine</option>
                  <option value="MD">Maryland</option>
                  <option value="MA">Massachusetts</option>
                  <option value="MI">Michigan</option>
                  <option value="NH">New Hampshire</option>
                  <option value="NJ">New Jersey</option>
                  <option value="NY">New York</option>
                  <option value="NC">North Carolina</option>
                  <option value="OH">Ohio</option>
                  <option value="PA">Pennsylvania</option>
                  <option value="RI">Rhode Island</option>
                  <option value="SC">South Carolina</option>
                  <option value="VT">Vermont</option>
                  <option value="VA">Virginia</option>
                  <option value="WV">West Virginia</option>
                 </optgroup>
                </select>
               </div>
              </div>
              <div class="form-group row">
               <label class="col-form-label text-right col-lg-3 col-sm-12">Multi Select</label>
               <div class=" col-lg-4 col-md-9 col-sm-12">
                <select class="form-control select2" id="kt_select2_3" name="param" multiple="multiple">
                 <optgroup label="Alaskan/Hawaiian Time Zone">
                  <option value="AK" selected>Alaska</option>
                  <option value="HI">Hawaii</option>
                 </optgroup>
                 <optgroup label="Pacific Time Zone">
                  <option value="CA">California</option>
                  <option value="NV" selected>Nevada</option>
                  <option value="OR">Oregon</option>
                  <option value="WA">Washington</option>
                 </optgroup>
                 <optgroup label="Mountain Time Zone">
                  <option value="AZ">Arizona</option>
                  <option value="CO">Colorado</option>
                  <option value="ID">Idaho</option>
                  <option value="MT" selected>Montana</option>
                  <option value="NE">Nebraska</option>
                  <option value="NM">New Mexico</option>
                  <option value="ND">North Dakota</option>
                  <option value="UT">Utah</option>
                  <option value="WY">Wyoming</option>
                 </optgroup>
                 <optgroup label="Central Time Zone">
                  <option value="AL">Alabama</option>
                  <option value="AR">Arkansas</option>
                  <option value="IL">Illinois</option>
                  <option value="IA">Iowa</option>
                  <option value="KS">Kansas</option>
                  <option value="KY">Kentucky</option>
                  <option value="LA">Louisiana</option>
                  <option value="MN">Minnesota</option>
                  <option value="MS">Mississippi</option>
                  <option value="MO">Missouri</option>
                  <option value="OK">Oklahoma</option>
                  <option value="SD">South Dakota</option>
                  <option value="TX">Texas</option>
                  <option value="TN">Tennessee</option>
                  <option value="WI">Wisconsin</option>
                 </optgroup>
                 <optgroup label="Eastern Time Zone">
                  <option value="CT">Connecticut</option>
                  <option value="DE">Delaware</option>
                  <option value="FL">Florida</option>
                  <option value="GA">Georgia</option>
                  <option value="IN">Indiana</option>
                  <option value="ME">Maine</option>
                  <option value="MD">Maryland</option>
                  <option value="MA">Massachusetts</option>
                  <option value="MI">Michigan</option>
                  <option value="NH">New Hampshire</option>
                  <option value="NJ">New Jersey</option>
                  <option value="NY">New York</option>
                  <option value="NC">North Carolina</option>
                  <option value="OH">Ohio</option>
                  <option value="PA">Pennsylvania</option>
                  <option value="RI">Rhode Island</option>
                  <option value="SC">South Carolina</option>
                  <option value="VT">Vermont</option>
                  <option value="VA">Virginia</option>
                  <option value="WV">West Virginia</option>
                 </optgroup>
                </select>
               </div>
              </div>
              <div class="form-group row">
               <label class="col-form-label text-right col-lg-3 col-sm-12">Placeholder</label>
               <div class=" col-lg-4 col-md-9 col-sm-12">
                <select class="form-control select2" id="kt_select2_4" name="param">
                 <option label="Label"></option>
                 <optgroup label="Alaskan/Hawaiian Time Zone">
                  <option value="AK">Alaska</option>
                  <option value="HI">Hawaii</option>
                 </optgroup>
                 <optgroup label="Pacific Time Zone">
                  <option value="CA">California</option>
                  <option value="NV">Nevada</option>
                  <option value="OR">Oregon</option>
                  <option value="WA">Washington</option>
                 </optgroup>
                 <optgroup label="Mountain Time Zone">
                  <option value="AZ">Arizona</option>
                  <option value="CO">Colorado</option>
                  <option value="ID">Idaho</option>
                  <option value="MT">Montana</option>
                  <option value="NE">Nebraska</option>
                  <option value="NM">New Mexico</option>
                  <option value="ND">North Dakota</option>
                  <option value="UT">Utah</option>
                  <option value="WY">Wyoming</option>
                 </optgroup>
                 <optgroup label="Central Time Zone">
                  <option value="AL">Alabama</option>
                  <option value="AR">Arkansas</option>
                  <option value="IL">Illinois</option>
                  <option value="IA">Iowa</option>
                  <option value="KS">Kansas</option>
                  <option value="KY">Kentucky</option>
                  <option value="LA">Louisiana</option>
                  <option value="MN">Minnesota</option>
                  <option value="MS">Mississippi</option>
                  <option value="MO">Missouri</option>
                  <option value="OK">Oklahoma</option>
                  <option value="SD">South Dakota</option>
                  <option value="TX">Texas</option>
                  <option value="TN">Tennessee</option>
                  <option value="WI">Wisconsin</option>
                 </optgroup>
                 <optgroup label="Eastern Time Zone">
                  <option value="CT">Connecticut</option>
                  <option value="DE">Delaware</option>
                  <option value="FL">Florida</option>
                  <option value="GA">Georgia</option>
                  <option value="IN">Indiana</option>
                  <option value="ME">Maine</option>
                  <option value="MD">Maryland</option>
                  <option value="MA">Massachusetts</option>
                  <option value="MI">Michigan</option>
                  <option value="NH">New Hampshire</option>
                  <option value="NJ">New Jersey</option>
                  <option value="NY">New York</option>
                  <option value="NC">North Carolina</option>
                  <option value="OH">Ohio</option>
                  <option value="PA">Pennsylvania</option>
                  <option value="RI">Rhode Island</option>
                  <option value="SC">South Carolina</option>
                  <option value="VT">Vermont</option>
                  <option value="VA">Virginia</option>
                  <option value="WV">West Virginia</option>
                 </optgroup>
                </select>
               </div>
              </div>
              <div class="form-group row">
               <label class="col-form-label text-right col-lg-3 col-sm-12">Array Data</label>
               <div class=" col-lg-4 col-md-9 col-sm-12">
                <select class="form-control select2" id="kt_select2_5" name="param">
                 <option value="2" selected="selected">Duplicate</option>
                </select>
               </div>
              </div>
              <div class="form-group row">
               <label class="col-form-label text-right col-lg-3 col-sm-12">Remote Data</label>
               <div class=" col-lg-4 col-md-9 col-sm-12">
                <select class="form-control select2" id="kt_select2_6" name="param">
                 <option label="Label"></option>
                </select>
               </div>
              </div>
              <div class="form-group row">
               <label class="col-form-label text-right col-lg-3 col-sm-12">Disabled Mode</label>
               <div class=" col-lg-4 col-md-9 col-sm-12">
                <select class="form-control select2" id="kt_select2_7" disabled="disabled" name="param">
                 <option label="Label"></option>
                 <optgroup label="Alaskan/Hawaiian Time Zone">
                  <option value="AK">Alaska</option>
                  <option value="HI">Hawaii</option>
                 </optgroup>
                 <optgroup label="Pacific Time Zone">
                  <option value="CA">California</option>
                  <option value="NV" selected>Nevada</option>
                  <option value="OR">Oregon</option>
                  <option value="WA">Washington</option>
                 </optgroup>
                 <optgroup label="Mountain Time Zone">
                  <option value="AZ">Arizona</option>
                  <option value="CO">Colorado</option>
                  <option value="ID">Idaho</option>
                  <option value="MT">Montana</option>
                  <option value="NE">Nebraska</option>
                  <option value="NM">New Mexico</option>
                  <option value="ND">North Dakota</option>
                  <option value="UT">Utah</option>
                  <option value="WY">Wyoming</option>
                 </optgroup>
                 <optgroup label="Central Time Zone">
                  <option value="AL">Alabama</option>
                  <option value="AR">Arkansas</option>
                  <option value="IL">Illinois</option>
                  <option value="IA">Iowa</option>
                  <option value="KS">Kansas</option>
                  <option value="KY">Kentucky</option>
                  <option value="LA">Louisiana</option>
                  <option value="MN">Minnesota</option>
                  <option value="MS">Mississippi</option>
                  <option value="MO">Missouri</option>
                  <option value="OK">Oklahoma</option>
                  <option value="SD">South Dakota</option>
                  <option value="TX">Texas</option>
                  <option value="TN">Tennessee</option>
                  <option value="WI">Wisconsin</option>
                 </optgroup>
                 <optgroup label="Eastern Time Zone">
                  <option value="CT">Connecticut</option>
                  <option value="DE">Delaware</option>
                  <option value="FL">Florida</option>
                  <option value="GA">Georgia</option>
                  <option value="IN">Indiana</option>
                  <option value="ME">Maine</option>
                  <option value="MD">Maryland</option>
                  <option value="MA">Massachusetts</option>
                  <option value="MI">Michigan</option>
                  <option value="NH">New Hampshire</option>
                  <option value="NJ">New Jersey</option>
                  <option value="NY">New York</option>
                  <option value="NC">North Carolina</option>
                  <option value="OH">Ohio</option>
                  <option value="PA">Pennsylvania</option>
                  <option value="RI">Rhode Island</option>
                  <option value="SC">South Carolina</option>
                  <option value="VT">Vermont</option>
                  <option value="VA">Virginia</option>
                  <option value="WV">West Virginia</option>
                 </optgroup>
                </select>
               </div>
              </div>
              <div class="form-group row">
               <label class="col-form-label text-right col-lg-3 col-sm-12">Disabled Results</label>
               <div class=" col-lg-4 col-md-9 col-sm-12">
                <select class="form-control select2" id="kt_select2_8" name="param">
                 <option label="Label"></option>
                 <option value="one">First</option>
                 <option value="two" disabled="disabled">Second (disabled)</option>
                 <option value="three">Third</option>
                </select>
               </div>
              </div>
              <div class="form-group row">
               <label class="col-form-label text-right col-lg-3 col-sm-12">Limiting Selections</label>
               <div class=" col-lg-4 col-md-9 col-sm-12">
                <select class="form-control select2" id="kt_select2_9" name="param" multiple>
                 <option label="Label"></option>
                 <optgroup label="Alaskan/Hawaiian Time Zone">
                  <option value="AK">Alaska</option>
                  <option value="HI">Hawaii</option>
                 </optgroup>
                 <optgroup label="Pacific Time Zone">
                  <option value="CA">California</option>
                  <option value="NV" selected>Nevada</option>
                  <option value="OR">Oregon</option>
                  <option value="WA">Washington</option>
                 </optgroup>
                 <optgroup label="Mountain Time Zone">
                  <option value="AZ">Arizona</option>
                  <option value="CO">Colorado</option>
                  <option value="ID">Idaho</option>
                  <option value="MT">Montana</option>
                  <option value="NE">Nebraska</option>
                  <option value="NM">New Mexico</option>
                  <option value="ND">North Dakota</option>
                  <option value="UT">Utah</option>
                  <option value="WY">Wyoming</option>
                 </optgroup>
                 <optgroup label="Central Time Zone">
                  <option value="AL">Alabama</option>
                  <option value="AR">Arkansas</option>
                  <option value="IL">Illinois</option>
                  <option value="IA">Iowa</option>
                  <option value="KS">Kansas</option>
                  <option value="KY">Kentucky</option>
                  <option value="LA">Louisiana</option>
                  <option value="MN">Minnesota</option>
                  <option value="MS">Mississippi</option>
                  <option value="MO">Missouri</option>
                  <option value="OK">Oklahoma</option>
                  <option value="SD">South Dakota</option>
                  <option value="TX">Texas</option>
                  <option value="TN">Tennessee</option>
                  <option value="WI">Wisconsin</option>
                 </optgroup>
                 <optgroup label="Eastern Time Zone">
                  <option value="CT">Connecticut</option>
                  <option value="DE">Delaware</option>
                  <option value="FL">Florida</option>
                  <option value="GA">Georgia</option>
                  <option value="IN">Indiana</option>
                  <option value="ME">Maine</option>
                  <option value="MD">Maryland</option>
                  <option value="MA">Massachusetts</option>
                  <option value="MI">Michigan</option>
                  <option value="NH">New Hampshire</option>
                  <option value="NJ">New Jersey</option>
                  <option value="NY">New York</option>
                  <option value="NC">North Carolina</option>
                  <option value="OH">Ohio</option>
                  <option value="PA">Pennsylvania</option>
                  <option value="RI">Rhode Island</option>
                  <option value="SC">South Carolina</option>
                  <option value="VT">Vermont</option>
                  <option value="VA">Virginia</option>
                  <option value="WV">West Virginia</option>
                 </optgroup>
                </select>
               </div>
              </div>
              <div class="form-group row">
               <label class="col-form-label text-right col-lg-3 col-sm-12">Hiding Search box</label>
               <div class=" col-lg-4 col-md-9 col-sm-12">
                <select class="form-control select2" id="kt_select2_10" name="param">
                 <option label="Label"></option>
                 <optgroup label="Alaskan/Hawaiian Time Zone">
                  <option value="AK">Alaska</option>
                  <option value="HI">Hawaii</option>
                 </optgroup>
                 <optgroup label="Pacific Time Zone">
                  <option value="CA">California</option>
                  <option value="NV">Nevada</option>
                  <option value="OR">Oregon</option>
                  <option value="WA">Washington</option>
                 </optgroup>
                 <optgroup label="Mountain Time Zone">
                  <option value="AZ">Arizona</option>
                  <option value="CO">Colorado</option>
                  <option value="ID">Idaho</option>
                  <option value="MT">Montana</option>
                  <option value="NE">Nebraska</option>
                  <option value="NM">New Mexico</option>
                  <option value="ND">North Dakota</option>
                  <option value="UT">Utah</option>
                  <option value="WY">Wyoming</option>
                 </optgroup>
                 <optgroup label="Central Time Zone">
                  <option value="AL">Alabama</option>
                  <option value="AR">Arkansas</option>
                  <option value="IL">Illinois</option>
                  <option value="IA">Iowa</option>
                  <option value="KS">Kansas</option>
                  <option value="KY">Kentucky</option>
                  <option value="LA">Louisiana</option>
                  <option value="MN">Minnesota</option>
                  <option value="MS">Mississippi</option>
                  <option value="MO">Missouri</option>
                  <option value="OK">Oklahoma</option>
                  <option value="SD">South Dakota</option>
                  <option value="TX">Texas</option>
                  <option value="TN">Tennessee</option>
                  <option value="WI">Wisconsin</option>
                 </optgroup>
                 <optgroup label="Eastern Time Zone">
                  <option value="CT">Connecticut</option>
                  <option value="DE">Delaware</option>
                  <option value="FL">Florida</option>
                  <option value="GA">Georgia</option>
                  <option value="IN">Indiana</option>
                  <option value="ME">Maine</option>
                  <option value="MD">Maryland</option>
                  <option value="MA">Massachusetts</option>
                  <option value="MI">Michigan</option>
                  <option value="NH">New Hampshire</option>
                  <option value="NJ">New Jersey</option>
                  <option value="NY">New York</option>
                  <option value="NC">North Carolina</option>
                  <option value="OH">Ohio</option>
                  <option value="PA">Pennsylvania</option>
                  <option value="RI">Rhode Island</option>
                  <option value="SC">South Carolina</option>
                  <option value="VT">Vermont</option>
                  <option value="VA">Virginia</option>
                  <option value="WV">West Virginia</option>
                 </optgroup>
                </select>
               </div>
              </div>
              <div class="form-group row">
               <label class="col-form-label text-right col-lg-3 col-sm-12">Tagging Support</label>
               <div class=" col-lg-4 col-md-9 col-sm-12">
                <select class="form-control select2" id="kt_select2_11" multiple name="param">
                 <option label="Label"></option>
                 <optgroup label="Alaskan/Hawaiian Time Zone">
                  <option value="AK">Alaska</option>
                  <option value="HI">Hawaii</option>
                 </optgroup>
                 <optgroup label="Pacific Time Zone">
                  <option value="CA">California</option>
                  <option value="NV">Nevada</option>
                  <option value="OR">Oregon</option>
                  <option value="WA">Washington</option>
                 </optgroup>
                 <optgroup label="Mountain Time Zone">
                  <option value="AZ">Arizona</option>
                  <option value="CO">Colorado</option>
                  <option value="ID">Idaho</option>
                  <option value="MT">Montana</option>
                  <option value="NE">Nebraska</option>
                  <option value="NM">New Mexico</option>
                  <option value="ND">North Dakota</option>
                  <option value="UT">Utah</option>
                  <option value="WY">Wyoming</option>
                 </optgroup>
                 <optgroup label="Central Time Zone">
                  <option value="AL">Alabama</option>
                  <option value="AR">Arkansas</option>
                  <option value="IL">Illinois</option>
                  <option value="IA">Iowa</option>
                  <option value="KS">Kansas</option>
                  <option value="KY">Kentucky</option>
                  <option value="LA">Louisiana</option>
                  <option value="MN">Minnesota</option>
                  <option value="MS">Mississippi</option>
                  <option value="MO">Missouri</option>
                  <option value="OK">Oklahoma</option>
                  <option value="SD">South Dakota</option>
                  <option value="TX">Texas</option>
                  <option value="TN">Tennessee</option>
                  <option value="WI">Wisconsin</option>
                 </optgroup>
                 <optgroup label="Eastern Time Zone">
                  <option value="CT">Connecticut</option>
                  <option value="DE">Delaware</option>
                  <option value="FL">Florida</option>
                  <option value="GA">Georgia</option>
                  <option value="IN">Indiana</option>
                  <option value="ME">Maine</option>
                  <option value="MD">Maryland</option>
                  <option value="MA">Massachusetts</option>
                  <option value="MI">Michigan</option>
                  <option value="NH">New Hampshire</option>
                  <option value="NJ">New Jersey</option>
                  <option value="NY">New York</option>
                  <option value="NC">North Carolina</option>
                  <option value="OH">Ohio</option>
                  <option value="PA">Pennsylvania</option>
                  <option value="RI">Rhode Island</option>
                  <option value="SC">South Carolina</option>
                  <option value="VT">Vermont</option>
                  <option value="VA">Virginia</option>
                  <option value="WV">West Virginia</option>
                 </optgroup>
                </select>
               </div>
              </div>

              <div class="form-group row">
               <label class="col-form-label text-right col-lg-3 col-sm-12">Modal Demos</label>
               <div class=" col-lg-4 col-md-9 col-sm-12">
                <a href="" class="btn btn-light-primary font-weight-bold" data-toggle="modal" data-target="#kt_select2_modal">Launch modal select2</a>
               </div>
              </div>
             </div>
             <div class="card-footer">
              <div class="row">
               <div class="col-lg-9 ml-lg-auto">
                <button type="reset" class="btn btn-primary mr-2">Submit</button>
                <button type="reset" class="btn btn-secondary">Cancel</button>
               </div>
              </div>
             </div>
            </form>
            <!--end::Form-->
           </div>

          // Class definition
          var KTSelect2 = function() {
           // Private functions
           var demos = function() {
            // basic
            $('#kt_select2_1').select2({
             placeholder: "Select a state"
            });

            // nested
            $('#kt_select2_2').select2({
             placeholder: "Select a state"
            });

            // multi select
            $('#kt_select2_3').select2({
             placeholder: "Select a state",
            });

            // basic
            $('#kt_select2_4').select2({
             placeholder: "Select a state",
             allowClear: true
            });

            // loading data from array
            var data = [{
             id: 0,
             text: 'Enhancement'
            }, {
             id: 1,
             text: 'Bug'
            }, {
             id: 2,
             text: 'Duplicate'
            }, {
             id: 3,
             text: 'Invalid'
            }, {
             id: 4,
             text: 'Wontfix'
            }];

            $('#kt_select2_5').select2({
             placeholder: "Select a value",
             data: data
            });

            // loading remote data

            function formatRepo(repo) {
             if (repo.loading) return repo.text;
             var markup = "<div class='select2-result-repository clearfix'>" +
              "<div class='select2-result-repository__meta'>" +
              "<div class='select2-result-repository__title'>" + repo.full_name + "</div>";
             if (repo.description) {
              markup += "<div class='select2-result-repository__description'>" + repo.description + "</div>";
             }
             markup += "<div class='select2-result-repository__statistics'>" +
              "<div class='select2-result-repository__forks'><i class='fa fa-flash'></i> " + repo.forks_count + " Forks</div>" +
              "<div class='select2-result-repository__stargazers'><i class='fa fa-star'></i> " + repo.stargazers_count + " Stars</div>" +
              "<div class='select2-result-repository__watchers'><i class='fa fa-eye'></i> " + repo.watchers_count + " Watchers</div>" +
              "</div>" +
              "</div></div>";
             return markup;
            }

            function formatRepoSelection(repo) {
             return repo.full_name || repo.text;
            }

            $("#kt_select2_6").select2({
             placeholder: "Search for git repositories",
             allowClear: true,
             ajax: {
              url: "https://api.github.com/search/repositories",
              dataType: 'json',
              delay: 250,
              data: function(params) {
               return {
                q: params.term, // search term
                page: params.page
               };
              },
              processResults: function(data, params) {
               // parse the results into the format expected by Select2
               // since we are using custom formatting functions we do not need to
               // alter the remote JSON data, except to indicate that infinite
               // scrolling can be used
               params.page = params.page || 1;

               return {
                results: data.items,
                pagination: {
                 more: (params.page * 30) < data.total_count
                }
               };
              },
              cache: true
             },
             escapeMarkup: function(markup) {
              return markup;
             }, // let our custom formatter work
             minimumInputLength: 1,
             templateResult: formatRepo, // omitted for brevity, see the source of this page
             templateSelection: formatRepoSelection // omitted for brevity, see the source of this page
            });

            // custom styles

            // tagging support
            $('#kt_select2_12_1, #kt_select2_12_2, #kt_select2_12_3, #kt_select2_12_4').select2({
             placeholder: "Select an option",
            });

            // disabled mode
            $('#kt_select2_7').select2({
             placeholder: "Select an option"
            });

            // disabled results
            $('#kt_select2_8').select2({
             placeholder: "Select an option"
            });

            // limiting the number of selections
            $('#kt_select2_9').select2({
             placeholder: "Select an option",
             maximumSelectionLength: 2
            });

            // hiding the search box
            $('#kt_select2_10').select2({
             placeholder: "Select an option",
             minimumResultsForSearch: Infinity
            });

            // tagging support
            $('#kt_select2_11').select2({
             placeholder: "Add a tag",
             tags: true
            });

            // disabled results
            $('.kt-select2-general').select2({
             placeholder: "Select an option"
            });
           }

           var modalDemos = function() {
            $('#kt_select2_modal').on('shown.bs.modal', function () {
             // basic
             $('#kt_select2_1_modal').select2({
              placeholder: "Select a state"
             });

             // nested
             $('#kt_select2_2_modal').select2({
              placeholder: "Select a state"
             });

             // multi select
             $('#kt_select2_3_modal').select2({
              placeholder: "Select a state",
             });

             // basic
             $('#kt_select2_4_modal').select2({
              placeholder: "Select a state",
              allowClear: true
             });
            });
           }

           // Public functions
           return {
            init: function() {
             demos();
             modalDemos();
            }
           };
          }();

          // Initialization
          jQuery(document).ready(function() {
           KTSelect2.init();
          });

Basic Example
Nested Example
Multi Select
Placeholder
Array Data
Remote Data
Disabled Mode
Disabled Results
Limiting Selections
Hiding Search box
Tagging Support
Modal Demos
Launch modal select2

##### Select2 Examples

Basic Example
Nested Example
Multi Select
Placeholder

### Validation State Examples

        <div class="form-group row">
         <label class="col-form-label text-right col-lg-3 col-sm-12">Valid State</label>
         <div class=" col-lg-4 col-md-9 col-sm-12">
          <select class="form-control select2 is-valid" id="kt_select2_1_validate" name="param">
           <option value="AK"></option>
           <option value="HI">Hawaii</option>
           <option value="CA">California</option>
           <option value="NV">Nevada</option>
           <option value="OR">Oregon</option>
           <option value="WA">Washington</option>
           <option value="AZ">Arizona</option>
           <option value="CO">Colorado</option>
           <option value="ID">Idaho</option>
           <option value="MT">Montana</option>
           <option value="NE">Nebraska</option>
           <option value="NM">New Mexico</option>
           <option value="ND">North Dakota</option>
           <option value="UT">Utah</option>
           <option value="WY">Wyoming</option>
           <option value="AL">Alabama</option>
           <option value="AR">Arkansas</option>
           <option value="IL">Illinois</option>
           <option value="IA">Iowa</option>
           <option value="KS">Kansas</option>
           <option value="KY">Kentucky</option>
           <option value="LA">Louisiana</option>
           <option value="MN">Minnesota</option>
           <option value="MS">Mississippi</option>
           <option value="MO">Missouri</option>
           <option value="OK">Oklahoma</option>
           <option value="SD">South Dakota</option>
           <option value="TX">Texas</option>
           <option value="TN">Tennessee</option>
           <option value="WI">Wisconsin</option>
           <option value="CT">Connecticut</option>
           <option value="DE">Delaware</option>
           <option value="FL">Florida</option>
           <option value="GA">Georgia</option>
           <option value="IN">Indiana</option>
           <option value="ME">Maine</option>
           <option value="MD">Maryland</option>
           <option value="MA">Massachusetts</option>
           <option value="MI">Michigan</option>
           <option value="NH">New Hampshire</option>
           <option value="NJ">New Jersey</option>
           <option value="NY">New York</option>
           <option value="NC">North Carolina</option>
           <option value="OH">Ohio</option>
           <option value="PA">Pennsylvania</option>
           <option value="RI">Rhode Island</option>
           <option value="SC">South Carolina</option>
           <option value="VT">Vermont</option>
           <option value="VA">Virginia</option>
           <option value="WV">West Virginia</option>
          </select>
          <div class="valid-feedback">Success! You've done it.</div>
          <span class="form-text text-muted">Example help text that remains unchanged.</span>
         </div>
        </div>
        <div class="form-group row">
         <label class="col-form-label text-right col-lg-3 col-sm-12">Invalid State</label>
         <div class=" col-lg-4 col-md-9 col-sm-12">
          <select class="form-control select2 is-invalid" id="kt_select2_2_validate" name="param">
           <optgroup label="Alaskan/Hawaiian Time Zone">
            <option value="AK">Alaska</option>
            <option value="HI">Hawaii</option>
           </optgroup>
           <optgroup label="Pacific Time Zone">
            <option value="CA">California</option>
            <option value="NV" selected>Nevada</option>
            <option value="OR">Oregon</option>
            <option value="WA">Washington</option>
           </optgroup>
           <optgroup label="Mountain Time Zone">
            <option value="AZ">Arizona</option>
            <option value="CO">Colorado</option>
            <option value="ID">Idaho</option>
            <option value="MT">Montana</option>
            <option value="NE">Nebraska</option>
            <option value="NM">New Mexico</option>
            <option value="ND">North Dakota</option>
            <option value="UT">Utah</option>
            <option value="WY">Wyoming</option>
           </optgroup>
           <optgroup label="Central Time Zone">
            <option value="AL">Alabama</option>
            <option value="AR">Arkansas</option>
            <option value="IL">Illinois</option>
            <option value="IA">Iowa</option>
            <option value="KS">Kansas</option>
            <option value="KY">Kentucky</option>
            <option value="LA">Louisiana</option>
            <option value="MN">Minnesota</option>
            <option value="MS">Mississippi</option>
            <option value="MO">Missouri</option>
            <option value="OK">Oklahoma</option>
            <option value="SD">South Dakota</option>
            <option value="TX">Texas</option>
            <option value="TN">Tennessee</option>
            <option value="WI">Wisconsin</option>
           </optgroup>
           <optgroup label="Eastern Time Zone">
            <option value="CT">Connecticut</option>
            <option value="DE">Delaware</option>
            <option value="FL">Florida</option>
            <option value="GA">Georgia</option>
            <option value="IN">Indiana</option>
            <option value="ME">Maine</option>
            <option value="MD">Maryland</option>
            <option value="MA">Massachusetts</option>
            <option value="MI">Michigan</option>
            <option value="NH">New Hampshire</option>
            <option value="NJ">New Jersey</option>
            <option value="NY">New York</option>
            <option value="NC">North Carolina</option>
            <option value="OH">Ohio</option>
            <option value="PA">Pennsylvania</option>
            <option value="RI">Rhode Island</option>
            <option value="SC">South Carolina</option>
            <option value="VT">Vermont</option>
            <option value="VA">Virginia</option>
            <option value="WV">West Virginia</option>
           </optgroup>
          </select>
          <div class="invalid-feedback">Shucks, check the formatting of that and try again.</div>
          <span class="form-text text-muted">Example help text that remains unchanged.</span>
         </div>
        </div>

Valid State
Success! You've done it.
Example help text that remains unchanged.
Invalid State
Shucks, check the formatting of that and try again.
Example help text that remains unchanged.

### User Profile 12 messages

James Jones
Application Developer
jm@softplus.com Sign Out
My Profile
Account settings and more update
My Messages
Inbox and tasks
My Activities
Logs and notifications
My Tasks
latest tasks and projects

##### Recent Notifications

Another purpose persuade Due in 2 Days
+28%
Would be to people Due in 2 Days
+50%
Purpose would be to persuade Due in 2 Days
-27%
The best product Due in 2 Days
+8%

#### Shopping Cart

iBlender The best kitchen gadget in 2020
$ 350 for 5
SmartCleaner Smart tool for cooking
$ 650 for 4
CameraMax Professional camera for edge cutting shots
$ 150 for 3
4D Printer Manufactoring unique objects
$ 1450 for 7
MotionWire Perfect animation tool
$ 650 for 7

##### System Messages

Top Authors Most Successful Fellas
+82$
Popular Authors Most Successful Fellas
+280$
New Users Most Successful Fellas
+4500$
Active Customers Most Successful Fellas
+4500$
Bestseller Theme Most Successful Fellas
+4500$

##### Notifications

Another purpose persuade Due in 2 Days
+28%
Would be to people Due in 2 Days
+50%
Purpose would be to persuade Due in 2 Days
-27%
The best product Due in 2 Days
+8%
5 new user generated report
Reports based on sales
2 new items submited
by Grog John
79 PSD files generated
Reports based on sales
$2900 worth producucts sold
Total 234 items
4.5h-avarage response time
Fostest is Barry
3 Defence alerts
40% less alerts thar last week
Avarage 4 blog posts per author
Most posted 12 time
16 authors joined last week
9 photodrapehrs, 7 designer
2 new items have been submited
by Grog John
2.8 GB-total downloads size
Mostly PSD end AL concepts
$2900 worth producucts sold
Total 234 items
7 new user generated report
Reports based on sales
4.5h-avarage response time
Fostest is Barry

##### Customer Care

Enable Notifications:
Enable Case Tracking:
Support Portal:

##### Reports

Generate Reports:
Enable Report Export:
Allow Data Collection:

##### Memebers

Enable Member singup:
Allow User Feedbacks:
Enable Customer Portal:
Matt Pears
Active
Matt Pears 2 Hours
How likely are you to recommend our company to your friends and family?
3 minutes You
Hey there, we’re just writing to let you know that you’ve been subscribed to a repository on GitHub.
Matt Pears 40 seconds
Ok, Understood!
Just now You
You’ll receive notifications for all issues, pull requests!
Matt Pears 40 seconds
You can unwatch this repository immediately by clicking here: https://github.com
Just now You
Discover what students who viewed Learn Figma - UI/UX Design. Essential Training also viewed
Matt Pears 40 seconds
Most purchased Business courses during this sale!
Just now You
Company BBQ to celebrate the last quater achievements and goals. Food and drinks provided

#### Select A Demo

##### Demo 1

Default RTL Version

##### Demo 2

Default RTL Version

##### Demo 3

Default RTL Version

##### Demo 4

Default RTL Version

##### Demo 5

Default RTL Version

##### Demo 6

Default RTL Version

##### Demo 7

Default RTL Version

##### Demo 8

Default RTL Version

##### Demo 9

Default RTL Version

##### Demo 10

Default RTL Version

##### Demo 11

Default RTL Version

##### Demo 12

Default RTL Version

##### Demo 13

Default RTL Version

##### Demo 14

Coming soon

##### Demo 15

Coming soon

##### Demo 16

Coming soon

##### Demo 17

Coming soon

##### Demo 18

Coming soon

##### Demo 19

Coming soon

##### Demo 20

Coming soon

##### Demo 21

Coming soon

##### Demo 22

Coming soon

##### Demo 23

Coming soon

##### Demo 24

Coming soon

##### Demo 25

Coming soon

##### Demo 26

Coming soon

##### Demo 27

Coming soon

##### Demo 28

Coming soon

##### Demo 29

Coming soon

##### Demo 30

Coming soon