AutoComplete for jQuery
https://www.devbridge.com/sourcery/components/jquery-autocomplete/#
var data = [ { value: '人民币', data: '¥' }, { value: '美元', data: '$' }, { value: 'dollar', data: '$' }, { value: '英镑', data: '£' }, ]; $('#autocomplete').autocomplete({ lookup: data, tabDisabled:true, onSelect: function (suggestion) { $("#schoolId").val(suggestion.data);//选择内容之后的处理 }, onInvalidateSelection:function(){ $("#schoolId").val("");//当选择后的内容发生改变时 } });
相关推荐
gufudhn 2020-06-12
yaohustiAC 2019-12-27
pythonclass 2019-11-07
geminihr 2015-03-19
仲崇峰 2015-06-02
83453065 2015-07-22
hubowei 2015-07-22
原為簡單 2017-02-21
87433764 2017-02-21
小肖 2017-05-12
89453862 2017-09-16
delmarks 2017-02-21
yesbuy00 2017-02-08
85403969 2016-10-25
gamecalo 2016-10-08
Web全栈笔记 2016-10-08
Kindlecode 2016-05-25