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

143
Views
Select custom list using bootstrap-select

Currently using bootstrap-select within a form

What I would like to do is have a user be able to select/deselect all from a custom list, at the moment I have implemented the ability to select/deselect all from a standard list of options.

Is there a way to bring in a custom list so a list of user favorites in this case and be able to select/deselect all?

Would also like the default list to still be present with its own select/deselect all functionality

<select id="list" class="custom-select form-control" name="list" multiple required>
  <% defaults.forEach((default) => { %>
    <option value="<%= default.name %>"><%= default.name %></option>
  <% }) %>
</select>

JS
$('#list').selectpicker({
  noneSelectedText: 'Default List',
  countSelectedText: '{0} Default Options selected',
  selectedTextFormat: 'count',
  actionsBox: true,
  style: 'form-control',
  display: 'static',
  dropupAuto: false,
});

Thanks

about 4 years ago · Juan Pablo Isaza
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!