小智 5
您需要将 Chosen.Jquery.js 修改为以下内容才能使其工作
使用选择的1.0版本
第62行添加这行代码
this.parsed.push({
array_index: this.parsed.length,
options_index: this.options_index,
value: option.value,
text: option.text,
html: option.innerHTML,
title: option.title, // this is Line 62 add this line
selected: option.selected,
disabled: group_disabled === true ? group_disabled : option.disabled,
group_array_index: group_position,
classes: option.className,
style: option.style.cssText
});
Run Code Online (Sandbox Code Playgroud)
修改第255行
return "<li title=\"" + option.title +"\" class=\"" + (classes.join(' ')) + "\"" + style + " data-option-array-index=\"" + option.array_index + "\">" + option.search_text + "</li>";
Run Code Online (Sandbox Code Playgroud)