select2 destroy
snippet in javascript

select2 destroy

user5835

if ($('#mySelect2').hasClass("select2-hidden-accessible")) {
    // Select2 has been initialized
    $('#mySelect2').select2('destroy');
}