long script in IE

0

A client reported that in his IE he is presenting a message that the script was too long, causing a crash.

$(document).ready(function () {
    $('select').each(function () {
       $(this).select2({
           allowClear: true,
            dropdownAutoWidth: true
        });
    });
});

My code above, does anyone have any suggestions?

    
asked by anonymous 03.02.2015 / 14:48

0 answers