Is there any methods to return to original select on a page, to make smth like this:
$('.search-select').select2();
$('.search-select-trigger').click(function() {
$select2.cancel();
});
Is there any methods to return to original select on a page, to make smth like this:
$('.search-select').select2();
$('.search-select-trigger').click(function() {
$select2.cancel();
});
Sorry, $('select').select2('destroy')
is what I need, should read the documentation more carefully