Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

150
Views
jQuery Select2 in Laravel 8

I don't know what's problem was

This is the return of select2:
This is the return of select2

and this is my code HTML:

<div class="row">
    <div class="col-sm-12 form-group">
        <label class="form-label-bold">Jenis</label>
        <select class="select2 form-control" id="type" required>
            <option value="">Pilih</option>
            <option value="1">Head Office</option>
            <option value="2">Branch Office</option>
        </select>
    </div>
</div>

and my jQuery:

<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script> 
<script type="text/javascript">
$(document).ready(function(){
    $('.select2').select2({})
})
</script>

And this is cdn CSS:

<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You have to give "multiple" in your select tag to get multiple selections.

<select class="select2 form-control" id="type" multiple required>
        <option value="">Pilih</option>
        <option value="1">Head Office</option>
        <option value="2">Branch Office</option>
</select>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!