Когда я использую Select2 (вход) в модале Bootstrap, я не могу ничего ввести в него. Это как инвалид? За пределами модального Select2 работает нормально.
Рабочий пример: http://jsfiddle.net/byjy8/1/1/1/1/1/1/1 ... 1/1/1/1/1/> code: p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p> p>.
×
Panel
Numer
Close
Save changes
< /code>
js < /h2>
$("#vdn_number").select2({
placeholder: "00000",
minimumInputLength: 2,
ajax: {
url: "getAjaxData/",
dataType: 'json',
type: "POST",
data: function (term, page) {
return {
q: term, // search term
col: 'vdn'
};
},
results: function (data) { // parse the results into the format expected by Select2.
// since we are using custom formatting functions we do not need to alter remote JSON data
return {results: data};
}
}
});
Подробнее здесь: https://stackoverflow.com/questions/184 ... trap-modal