dongwusang0314 2014-09-28 11:53
浏览 23
已采纳

在文本字段中键入时显示预制建议列表

As the title says I'm working on an mysql project and I want the text field to give suggestions with the existing users while typing in it ( admin control page to ban users .. something like that )

a simple example to explain:

when I have a text input .. I want to give suggestions to user while he is typing in it let's say he is typing color names so when he type b in it before he continues a list appears giving him suggestions that we pre set like: black brown blue

and then if he typed l to be bl the the list would be: black blue blabla

any advise?

  • 写回答

1条回答 默认 最新

  • dsdapobp26141 2014-09-28 13:26
    关注

    Chechkout this page tutorial http://www.w3schools.com/php/php_ajax_php.asp it provides what you need by using ajax and php. You only have to programmaticly fill your array with your users name

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Python报错怎么解决
  • ¥15 simulink如何调用DLL文件
  • ¥15 关于用pyqt6的项目开发该怎么把前段后端和业务层分离
  • ¥30 线性代数的问题,我真的忘了线代的知识了
  • ¥15 有谁能够把华为matebook e 高通骁龙850刷成安卓系统,或者安装安卓系统
  • ¥188 需要修改一个工具,懂得汇编的人来。
  • ¥15 livecharts wpf piechart 属性
  • ¥20 数学建模,尽量用matlab回答,论文格式
  • ¥15 昨天挂载了一下u盘,然后拔了
  • ¥30 win from 窗口最大最小化,控件放大缩小,闪烁问题