dual-listbox.js是一款纯JavaScript插件,将正常的选择框转换成一个可搜索的双重列表框,用户可以选择两个选择之间移动面板。DualListbox(".selectDemo",{ addEvent: function(value) { console.log(value); }, removeEvent: function(value) { console.log(value); }, availableTitle: "Different title", selectedTitle: "Different title", addButtonText: ">", removeButtonText: "<", addAllButtonText: ">>", removeAllButtonText: "<<", options: [ {text:"Option 1", value: "OPTION1"}, {text:"Option 2", value: "OPTION2"}, {text:"Selected option", value: "OPTION3", selected:true} ] });
dd: