You must define the select2 as
$("#customers_select").select2({
placeholder: "Select a customer",
initSelection: function(element, callback) {
}
});
To reset the select2
$("#customers_select").select2("val", "");
More Related Contents:
- Select2 doesn’t work when embedded in a bootstrap modal
- Using bootstrap select2 with JqGrid form
- anchor click doesn’t open the modal
- Issue with a design when content increase [closed]
- Dropdown Z-index not responding [closed]
- twitter bootstrap typeahead ajax example
- Bootstrap 3: Keep selected tab on page refresh
- $(window).width() not the same as media query
- How can I keep Bootstrap popovers alive while being hovered?
- How do I bind Twitter Bootstrap tooltips to dynamically created elements?
- How to set selected value on select using selectpicker plugin from bootstrap
- How to insert close button in popover for Bootstrap
- Twitter Bootstrap carousel vertical sliding
- Bootstrap throws Uncaught Error: Bootstrap’s JavaScript requires jQuery [closed]
- need click twice after hide a shown bootstrap popover
- Use Bootstrap 3 dropdown menu as context menu
- Limit bootstrap-datepicker to weekdays only?
- jQuery ui datepicker conflict with bootstrap datepicker
- Autocomplete issue into bootstrap modal
- JQuery Select2 – How to select all options
- Implementing jQuery DatePicker in Bootstrap modal
- Initialising select2 created dynamically
- How to check if bootstrap modal is open, so I can use jquery validate?
- Does Twitter Bootstrap include jQuery?
- Autofocus input in twitter bootstrap modal
- Selectable optgroup using select2
- Bootstrap Carousel showing next and previous image
- Load content with ajax in bootstrap modal
- Keep Bootstrap dropdown open on click
- Jquery to open Bootstrap v3 modal of remote url