Questions tagged [select2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
3answers
50k views

How to select multiple values in select2 control by jquery?

I want to select multiple options in a select2 multivalue control, when clicking a button. This is useful specially for searches where the user needs to select many option to one of the filters any ...
4
votes
2answers
5k views

Setting Select2 widths

We have a number of forms that have items on them using the built in Select2 support. They aren't quite wide enough; annoyingly so. For the default selection, you can see the membership type and the ...
2
votes
1answer
2k views

How can I trigger a selection for a Select2 EntityRef element via javascript?

The CiviCRM EntityRef form element uses a Select2 select box to make lots of CiviCRM forms more awesome. A user can, for example, search for contacts to choose one. Great. I am building an extension ...