jQuery在特定按键后自动完成
我如何添加事件以在按下@或#(hashtags)等键后使用Autocomplete,然后将变量格式化为要插入的链接 对其使用jquery: 可能有帮助,这是关于在jQuery在特定按键后自动完成,jquery,autocomplete,Jquery,Autocomplete,我如何添加事件以在按下@或#(hashtags)等键后使用Autocomplete,然后将变量格式化为要插入的链接 对其使用jquery: 可能有帮助,这是关于在@字符后触发自动完成 auto_options = { serviceUrl: '/getpincodes', width: 300, minChars:1, delimiter: /(@|#)\s, deferRequestBy: 0, //miliseconds type: "POS
@
字符后触发自动完成
auto_options = {
serviceUrl: '/getpincodes',
width: 300,
minChars:1,
delimiter: /(@|#)\s,
deferRequestBy: 0, //miliseconds
type: "POST",
isLocal:true,
enable: true,
onSelect: function(value, data){
return data;
},
noCache: true //set to true, to disable caching
};
$(document).ready( function() {
$('#inputId').autocomplete(auto_options);
});