Answers for "select2 in modal"

1

select2 in modal not work

//replace it with your script
<script>
    $('#mySelect2').select2({
        dropdownParent: $('#myModal')
    });
</script>
Posted by: Guest on December-15-2020
0

enforcefocus select2 modal

// Do this before you initialize any of your modals
$.fn.modal.Constructor.prototype.enforceFocus = function() {};
Posted by: Guest on October-19-2020
0

select2 bootstrap modal issue

$('.select2').select2({
 dropdownParent: $('#modal .modal-body')
 });
Posted by: Guest on October-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language