I needed select2 multiple choices support, so I share my changes with you.
Usage :
Just use the method like before : select2("Dropdown Text", from: "Label of the dropdown")
Or with multiples choices in an array : select2(["Choice 1", "Choice 2"], from: "Label of the dropdown").
I needed select2 multiple choices support, so I share my changes with you.
Usage : Just use the method like before : select2("Dropdown Text", from: "Label of the dropdown") Or with multiples choices in an array : select2(["Choice 1", "Choice 2"], from: "Label of the dropdown").