Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Eric Hynds 的 jQuery.UI 多选,这是链接
我想以逗号分隔显示多个选定的文本。
有任何想法吗?
您可以使用该selectedText选项
selectedText
$('selector').multiselect({ selectedText: function (sCount, tCount, els) { if (sCount) { return $.map(els, function (el) { return $(el).val() }).join() } else { 'None' } } })