Select2 dalam modal tidak berfungsi
//replace it with your script
<script>
$('#mySelect2').select2({
dropdownParent: $('#myModal')
});
</script>
Copy Paster
//replace it with your script
<script>
$('#mySelect2').select2({
dropdownParent: $('#myModal')
});
</script>
Remove tabindex = "-1" from the bootstrap modal
// Do this before you initialize any of your modals
$.fn.modal.Constructor.prototype.enforceFocus = function() {};
<script>
$('#mySelect2').select2({
dropdownParent: $('#myModal')
});
</script>
Remove tabindex = "-1" from the bootstrap modal