[英]Limit the jQuery select2 maximum visible (not selected) options
限制 jQuery select2 最大可见(未选择)选项
我只想在 select2 中限制多个 select 可见标签选项,用户仍然可以 select 更多选项,如果他们 select 比他们可以看到的最大可见数量更多选项...
您可以使用maximumSelectionLength
$("#dropdown").select2({
maximumSelectionLength: 3
});
This solved my problem.
I had to restrict the visible selected options which were increasing
height.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.