首页页面文本域改写成: <select id="selectedUsers" name="selectedUsers" multiple="multiple" class="select2" size="10"></select>
js代码触发:
//双击select下拉列表选项
$('#selectedUsers').dblclick(function(){
$('#selectedUsers option:selected').remove();
}).mousedown(function(e){
// 右击
if (e.which == 3){
$(this).children("option:selected").remove();
}
}).bind("contextmenu",function(){return false;}); // 该组件禁用右键菜单(Firefox会触发右键菜单);