Хорошо, у меня все получилось.
изменение
<div id="myModal" class="modal hide fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">?</button>
<h3 id="myModalLabel">Panel</h3>
</div>
<div class="modal-body" style="max-height: 800px">
в
$.fn.modal.Constructor.prototype.enforceFocus = function() {};
(удалить <! - Modal -> <div class = "modal fade" id = "myModal" tabindex = "- 1" role = "dialog" aria-labelledby = "myModalLabel"> <div class = "модальный диалог "role =" document "> <div class =" modal-content "> <div class =" modal-header "> <button type =" button "class =" close "data-reject =" modal "aria-label = «Закрыть»> <span aria-hidden = "true"> & times; </ span> </ button> <h4 class = "modal-title" id = "myModalLabel"> Модальный заголовок </ h4> </ div> < div class = "modal-body"> <select id = "select2insidemodal" multiple = "multiple"> <option value = "AL"> Alabama </ option> ... <option value = "WY"> Wyoming </ option > </ select> </ div> <div class = "modal-footer"> <button type = "button" class = "btn btn-default" data-reject = "modal"> Закрыть </ button> <тип кнопки = "button" class = "btn btn-primary"> Сохранить изменения </ button> </ div> </ div> </ div> </ div> <script> $ (document) .ready (function () {$ («# select2insidemodal»). select2 ({dropdownParent: $ ("# myModal")});}); </ script> из модального)