간단한 입력 컨트롤에서 내 코드에 select2 3.4.2를 사용하고 있습니다.Select2가 IE7에서 작동하지 않습니다.
Json에서 값을 반환하는 웹 서비스에서 컨트롤을 채 웁니다.
IE8 이상에서는 물론 Chrome 및 Firefox에서도 컨트롤이 작동합니다. IE7에서 작동하도록 수정되었습니다.
아래에있는 내 코드를 찾아주세요 : -
<input type="hidden" class="bigdrop" name="optionvalue" id="selectbox-o" style="width: 350px;" />
$(document).ready(function(){
$('#selectbox-o').select2({
placeholder: "Choose a Manager",
allowClear: true,
ajax: {
url: managerServiceURL + '/GetManagerNames',
type: 'POST',
params: {
contentType: 'application/json; charset=utf-8'
},
dataType: 'json',
data: function (term, page) {
return JSON.stringify({ q: term});
},
results: function (data, page) {
return { results: data.d};
}
},
});
});