You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to set a limit for selected elements with the option maximumSelectionSize is not working even if i overwrite the plugin:
$('#my-select').select2MultiCheckboxes({maximumSelectionSize: 2// THIS IS NOT WORKING})
$.fn.extend({select2MultiCheckboxes: function(){varoptions=$.extend({placeholder: 'Choose elements',maximumSelectionSize: 2,// THIS IS NOT WORKINGformatSelection: function(selected,total){returnselected.length+' > '+total+' total';},wrapClass: 'wrap'},arguments[0]);this.each(function(){
...
I'm using the 3.5.2 version of select2
The text was updated successfully, but these errors were encountered:
Trying to set a limit for selected elements with the option maximumSelectionSize is not working even if i overwrite the plugin:
I'm using the 3.5.2 version of select2
The text was updated successfully, but these errors were encountered: