multi-select
multi-select copied to clipboard
deselect all removes pre-selected disabled items
I see that plugin supports having pre-selected disabled options, so that they cannot be removed. It works fine otherwise, But deselect_all doesnt take those into account.
have the same problem, when calling deselect_all also the disabled options in the "right" list are moved to the "left" one, while remain disabled. When calling select_all after that, this elements remain in the left list. Is there a solution for that case, since the post is more than 3 years old??
Same here. Ended up doing something like this
$('#js-selection').multiSelect('deselect_all');
$('#disabledOption').removeAttr('disabled');
$('#js-selection').multiSelect('refresh');
$('#js-selection').multiSelect('select', $('#disabledOption').val());
$('#disabledOption').attr('disabled', true);
$('#js-selection').multiSelect('refresh');
Not pretty but it's working...