Accessing Multiselect Dropdown Configuration Options

The Select2 jQuery script as used by the Multiselect Dropdown plugin has additional configuration options that can be set with javascript.

e.g. for keeping the dropdown open on select

$('#mySelect2').select2({
  closeOnSelect: false
});

While I can add an HTML element to run this bit of script, I can’t find an ID to reference my dropdown (i.e. #mySelect2). Adding an ID to the element does not seem to help, and there are no IDs attached to the Select2 element in the first place.

Any assistance would be awesome!

3 Likes

I’m having the exact same problem. The run javascript action from the toolbox plugins also didn’t work.

I had no luck with this and moved over to the Selectize Dropdown plugin - the developer is extremely helpful and proactive - I strongly recommend the switch!