jquery.auto.complete自动填充
jquery-autoComplete是一个非常轻量级的jQuery完成补全插件。这里整合的版本是v1.0.7。
github地址:https://github.com/Pixabay/jQuery-autoComplete

演示页面需要在应用服务器下运行,这里author.php作为后端演示用,所以只返回同样的数据。
实际影响应用中,可以根据输入框的内容来返回结果,示例中也做了选择意向后id的设置,以及清空输入框后同时将author_id置为空的操作。
插件项目中页面名字:test_auto_complete.html test_auto_complete_v4.html author.php (ajax演示用)
涉及的文件:
js/jquery-auto-complete/jquery.auto-complete.min.cssjs/jquery-auto-complete/jquery.auto-complete.js