Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

148
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda