Questions tagged [bootstrap-selectpicker]

Use this when referring to Bootstrap-select by Silvio Moreto. This is a jQuery plugin that utilizes Bootstrap's dropdown.js to style and bring additional functionality to standard select elements.

website

https://silviomoreto.github.io/bootstrap-select/

github

https://github.com/silviomoreto/bootstrap-select

syntax

$('.selectpicker').selectpicker({
  style: 'btn-info',
  size: 4
});

screenshot

enter image description here

315 questions
15
votes
3 answers

$(...).selectpicker is not a function

I am using bootstrap-select for a form. I include the scripts (jquery, bootstrap-select) in the header of the HTML file.
Djov
  • 368
  • 1
  • 3
  • 16
12
votes
8 answers

Select all / Unselect all in Bootstrap Select plugin

lists I am having an issue where it is triggering the on change event twice. for example here is the my select list
I…
kostepanych
  • 1,589
  • 7
  • 24
  • 39
6
votes
2 answers

Cannot change title of Boostrap-select selectpicker

I want to programmatically change the title of my Bootstrap-select selectpicker. I tried the following JS code which does not work. $('#myPicker') .selectpicker({title: 'New title'}) .selectpicker('render'); Any other ways I can do this?
user6758349
6
votes
2 answers

d.stopPropagation is not a function on bootstrap select-picker

I have an issue on my site, the select picker works fine a lot of time, but without making any changes on the code, the select-picker stopped working. The error is: bootstrap-select.min.js:7 Uncaught TypeError: d.stopPropagation is not a…
5
votes
2 answers

click for select and deselect of single drop down like multiple in bootstrap-select

I have used bootstrap select Now, when I click on an option it should be selected as it is working fine, but when I click on the same option it should be deselected with both click and Enter keypress event how it is working on multiple select I…
5
votes
1 answer

How to set selected option with selectpicker plugin from bootstrap

I am using the Bootstrap-Select: For…
London Smith
  • 1,309
  • 2
  • 10
  • 31
4
votes
3 answers

How can I set fixed width for options(dropdown) in bootstrap selectpicker

This is code I…
4
votes
3 answers

selectpicker : Get the data attribute of selected option

I'm having hard time in to getting the data attribute set to select option on bootstrap selectpicker . I tried: $('.selectpicker').on('changed.bs.select', function (e) { var selected = e.target.value; console.log("value : ", selected ); //…
4
votes
2 answers

AG-Grid render Bootstrap-Select as a dropdwon

I have implemented editable AG-Grid. In the grid, one of the column displays country of the player as shown below: Now in last column, when user click on the cell, I want to display list of available countries as a dropdown. Here by default…
confusedDeveloper
  • 3,733
  • 3
  • 16
  • 26
3
votes
0 answers

Bootstrap Selectpicker - Selecting option in one select picker selects it in another

I'm running into something strange whereby clicking an option in one select picker selects it in another select picker. Basically I am creating a select picker which contains the selected options from the original clicker, and am doing this per user…
1
2 3
20 21