Fork me on GitHub

BsMultiselect

Multiselect Plugin for Bootstrap 5

dashboardcode.BsMultiSelect("#myElement");
$("select[multiple='multiple']").bsMultiSelect();

Horizontal Form / Disabled
Form Row / Custom Validation
Looks good!
Looks good!
Error!
Error!
Inline Form / Input groups
:-)
:-)



    $('#myDropdown').on('hide.bs.dropdown', function (jqEvent) {
        if (jqEvent.clickEvent) {
            var target = jqEvent.clickEvent.target;
            var container = $('#bsMultiSelectOnDropdown').bsMultiSelect("GetContainer");
            if (container== target || $.contains(container, target))
                return false;
        }
    })


    Initiated with JavaScript Object

      Return to Github