I am currently using a bootstrap multiselect dropdown to display all the selected values in the dropdown. However, I now have a large number of values and would like to break them into multiple lines. This is how it currently looks like displayed in the image below:
https://i.sstatic.net/p0Nu6.png
I am specifically looking to have the selected content within the select group option break into more than one line. Below is the jQuery code I currently have for achieving this:
<script type="text/javascript>
$(document).ready(function() {
$('#fk_group_id').multiselect({
includeSelectAllOption: true,
enableFiltering: true,
buttonText: function(options, select) {
if (options.length == 0) {
return 'Select Groups';
}
else {
var selected = '';
options.each(function() {
selected += $(this).text() + ', ';
});
return selected.substr(0, selected.length -2);
}
},
});
$('.btn-group').css({"min-width":"35%"});
});
</script>
If anyone could provide assistance, that would be greatly appreciated.