jQuery中的可编辑下拉菜单 [英] Editable drop-down in jQuery

查看:82
本文介绍了jQuery中的可编辑下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要求医生在哪里搜索病人的姓名.

I have a requirement where the name of the patient will be searched by the doctor.

也可能有多个具有相同姓名的患者,因此,当他开始搜索时,他必须获得他所键入的具有匹配名称的所有患者的下拉列表. 他必须能够从中进行选择,并且他仍然必须能够键入新的新搜索,并且下拉菜单必须更改.

There may be multiple patients with same name as well, so when he starts searching he must get a drop-down list of all the patients with matching names he has typed. He must be able to select from it and he must be still able to type new new search and drop down must change.

我该怎么做?

推荐答案

看看 jQuery UI自动填充.特别是,此演示(组合框)看起来像您要尝试的操作.

Take a look at jQuery UI autocomplete. In particular, this demo (Combobox) looks like what you are trying to do.

这篇关于jQuery中的可编辑下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆