如何通过在搜索文本框中键入来获取列表? [英] How to get list by typing in search textbox?

查看:94
本文介绍了如何通过在搜索文本框中键入来获取列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,在搜索文本框中,如果我输入名称A,那么我想获得一个以A开头的名字列表,如果我点击该列表的任何名称,我想获得该医生的详细信息。如何这样做??????(MVC)



我尝试过:



这是两种搜索方式---

1)

医生部门有两个下拉菜单,医生名字有两个下拉菜单。如果我选择部门我已经将所有医生与第二个下拉列表绑定到部门的所有医生,我选择了一位医生,我得到了该医生的详细信息





2)由医生命名文本框搜索。我想表明我在上面的问题中描述过。帮助我!!!!!!

Sir,In search textbox if I type name "A" then I want to get a list of names that starts with "A" and if I click on anyone name of that list I want to get details of that doctor.How to do it??????(MVC)

What I have tried:

Theere are two way for searching---
1)
There are two dropdowns one for doctors department,and another for doctors name.If I select department I have bind all doctors with second dropdown list with all the doctors in department and I select one doctor and I gets details of that doctor


2) By doctors name textbox search.here I want to show that I have described in proble above.Help me!!!!!!

推荐答案

所有您需要做的是实现自动完成功能。请参阅:

使用JQuery的MVC自动完成文本框 [ ^ ]

在ASP中创建自动完成文本框。 NET MVC 5 [ ^ ]

MVC自动完成文本框演示 - 主页 [ ^ ]
All you need to do is to implement "autocomplete" functionality. See:
MVC Autocomplete Textbox Using JQuery[^]
Creating AutoComplete TextBox In ASP.NET MVC 5[^]
MVC Auto Complete Textbox Demo - Home[^]


这篇关于如何通过在搜索文本框中键入来获取列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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