【发布时间】:2013-08-05 10:35:14
【问题描述】:
这是我的多选代码..
$("#cboMethod").multiselect({
header: true,
height: 150,
selectedText: '# Method Selected',
selectedList: 2,
noneSelectedText: "Select Method",
minWidth: 210
});
在我的情况下,我有三个或更多选项......让它成为'OptionA','OptionB','OptionC'等。 因此,如果我单独选择“OptionA”,我需要将我的 selectedText 显示为“OptionA”。如果我选择了更多的值,包括 'OptionA',它应该是 'OptionA,...'
我使用了selectedList: 2,,所以如果我只选择“OptionA”,它会按预期工作...但是如果选择更多选项,它会更改为“OptionA,OptionB”...
是否可以将其设为 'OptionA,...'
【问题讨论】:
标签: jquery jquery-ui jquery-plugins multi-select