jquery-select2

Select2 Uses

Introduction#

Select never work in Bootstrap Modal follow given steps to use select2 in Bootstrap Model.

Using Select2 in a Bootstrap Modal/PopUp

If you are using Bootstrap Modal then be sure that Model tabindex=-1 is removed.

 $('#targetId').select2({
        width: '100%',
        dropdownParent: $("#myModal")
    })

Using Select2 in a Bootstrap Modal/PopUp

Using Select2 in a Bootstrap Modal/PopUp If you are using Bootstrap Modal then be sure that Model tabindex=-1 is removed.

$('#targetId').select2({ width: '100%', dropdownParent: $("#myModal") })

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow