シンプルな入力コントロールのコードで select2 3.4.2 を使用しています。
Json で値を返す Web サービスからコントロールを設定しています。
コントロールは、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};
                    }
                },
            });
        });