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