Chu*_*ung 1 javascript jquery-select2
例如,当使用select2 muti-value时,用户输入' new ',并显示
在选择" New Mexcio "之后,用户想要从剩下的3个中再次选择.为了做到这一点,用户必须再次输入"新".
有没有办法保留结果而不是清除' 查询?
谢谢
听起来你想要将查询从一个搜索持续到下一个搜索.您可能想要查看nextSearchTerm
酒店.
要在下一次搜索中显示当前值,
function displayCurrentValue(selectedObject, currentSearchTerm) {
return currentSearchTerm;
}
$("#e1").select2({
nextSearchTerm: displayCurrentValue
});
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1674 次 |
最近记录: |