jQuery Select2: how to disable or enable select
To enable, we can use two methods:
$('#foo').select2('enable', false);
$('#foo').attr('disabled','disabled');
To disable:
$('#foo').removeAttr('disabled');
jQuery Select2: how to disable or enable select
To enable, we can use two methods:
$('#foo').select2('enable', false);
$('#foo').attr('disabled','disabled');
To disable:
$('#foo').removeAttr('disabled');