Bootstrap Multiselect error if you just target the class this way.
$(".multiselect").multiselect("refresh");
This is because there is something else in the plugin that has the "multiselect" class. You must tell him that this is only the one you want to configure.
The following worked for me.
$("select.multiselect").multiselect("refresh");
The same applies to the deselect method.
$("select.multiselect").multiselect("deselectAll", false);
source share