<select class="" id="js-select2" multiple="multiple">
<option>1</option>
<option>1</option>
</select>
$('#js-select2').select2({
placeholder: "Select your option",
allowClear: true
});
I am using this to create a dropdown with my options, the options appear correctly however the select allows the user to type and searches. I want it to be a simple button with an arrow aligned to the right that on clicked displays all my options. How can i do this?
I’ve tried playing with the styling and using select2-dropdown however it doesn’t seem to do anything. This seems like a simple fix but I am apparently having brain block
2
Answers
Try this instead:-
Please try this and update here.
For single select use
minimumResultsForSearch = -1
.For multiple select set
disabled
on search field (as stated in documentation):