在项目中使用jquery-ui的autocomplete,如果input在页面中就没有问题,但是如果input在bootstrap的模态框中,就没有效果
username在modal里,username2在页面中
$( "#username" ).autocomplete({
source: user_list
});
$( "#username2" ).autocomplete({
source: user_list
});
input id="username2"
input id="username"
是jquery-ui对bootstrap的支持问题么?
如果无法解决,又该用什么自动补全好呢?
单独用jquery的autocomplete试试呢 https://github.com/devbridge/jQuery-Autocomplete